diff options
author | cremno <cremno@mail.ru> | 2021-02-21 09:35:04 +0100 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-02-22 12:19:21 +0900 |
commit | a7dda449e843ab1c208ba4d1bdbe269271fe66d2 (patch) | |
tree | 94bffe4c191c5a6a3b263892badba1d20d82b6aa | |
parent | 089b7a84606925e885fe91050483a352735aa91e (diff) |
[ruby/reline] fix Reline::Windows.getconsolemode buffer
use double quotes to properly convert the \000 escape sequence.
https://github.com/ruby/reline/commit/236dfe5683
-rw-r--r-- | lib/reline/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 88f841c6a8..6edc68e780 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -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 |