We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02b32fa commit e55cd1bCopy full SHA for e55cd1b
src/prompt_toolkit/output/windows10.py
@@ -66,15 +66,20 @@ def responds_to_cpr(self) -> bool:
66
return False # We don't need this on Windows.
67
68
def __getattr__(self, name: str) -> Any:
69
+ # NOTE: Now that we use "virtual terminal input" on
70
+ # Windows, both input and output are done through
71
+ # ANSI escape sequences on Windows. This means, we
72
+ # should enable bracketed paste like on Linux, and
73
+ # enable mouse support by calling the vt100_output.
74
if name in (
75
"get_size",
76
"get_rows_below_cursor_position",
- "enable_mouse_support",
- "disable_mouse_support",
77
"scroll_buffer_to_prompt",
78
"get_win32_screen_buffer_info",
- "enable_bracketed_paste",
- "disable_bracketed_paste",
79
+ # "enable_mouse_support",
80
+ # "disable_mouse_support",
81
+ # "enable_bracketed_paste",
82
+ # "disable_bracketed_paste",
83
):
84
return getattr(self.win32_output, name)
85
else:
0 commit comments