File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,8 @@ def detach(self) -> ContextManager[None]:
104
104
def read_keys (self ) -> list [KeyPress ]:
105
105
return list (self .console_input_reader .read ())
106
106
107
- def flush_keys (self ) -> None :
108
- if self ._use_virtual_terminal_input :
109
- return self .console_input_reader .flush_keys ()
110
- else :
111
- return []
107
+ def flush_keys (self ) -> list [KeyPress ]:
108
+ return self .console_input_reader .flush_keys ()
112
109
113
110
@property
114
111
def closed (self ) -> bool :
@@ -298,6 +295,10 @@ def read(self) -> Iterable[KeyPress]:
298
295
else :
299
296
yield from all_keys
300
297
298
+ def flush_keys (self ) -> list [KeyPress ]:
299
+ # Method only needed for structural compatibility with `Vt100ConsoleInputReader`.
300
+ return []
301
+
301
302
def _insert_key_data (self , key_press : KeyPress ) -> KeyPress :
302
303
"""
303
304
Insert KeyPress data, for vt100 compatibility.
You can’t perform that action at this time.
0 commit comments