We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00021fa commit b2cc680Copy full SHA for b2cc680
lib/reline/windows.rb
@@ -235,7 +235,11 @@ def self.check_input_event
235
num_of_events = 0.chr * 8
236
while @@output_buf.empty?
237
Reline.core.line_editor.resize
238
- next if @@WaitForSingleObject.(@@hConsoleInputHandle, 100) != 0 # max 0.1 sec
+ if @@WaitForSingleObject.(@@hConsoleInputHandle, 100) != 0 # max 0.1 sec
239
+ # prevent for background consolemode change
240
+ @@legacy_console = (getconsolemode() & ENABLE_VIRTUAL_TERMINAL_PROCESSING == 0)
241
+ next
242
+ end
243
next if @@GetNumberOfConsoleInputEvents.(@@hConsoleInputHandle, num_of_events) == 0 or num_of_events.unpack1('L') == 0
244
input_record = 0.chr * 18
245
read_event = 0.chr * 4
0 commit comments