mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] fix Reline::Windows.getconsolemode buffer
use double quotes to properly convert the \000 escape sequence. https://github.com/ruby/reline/commit/236dfe5683
This commit is contained in:
parent
089b7a8460
commit
a7dda449e8
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Reline::Windows
|
|||
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4
|
||||
|
||||
private_class_method def self.getconsolemode
|
||||
mode = '\000\000\000\000'
|
||||
mode = "\000\000\000\000"
|
||||
@@GetConsoleMode.call(@@hConsoleHandle, mode)
|
||||
mode.unpack1('L')
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue