ruby-changes:65316
From: cremno <ko1@a...>
Date: Mon, 22 Feb 2021 12:19:30 +0900 (JST)
Subject: [ruby-changes:65316] a7dda449e8 (master): [ruby/reline] fix Reline::Windows.getconsolemode buffer
https://git.ruby-lang.org/ruby.git/commit/?id=a7dda449e8 From a7dda449e843ab1c208ba4d1bdbe269271fe66d2 Mon Sep 17 00:00:00 2001 From: cremno <cremno@m...> Date: Sun, 21 Feb 2021 09:35:04 +0100 Subject: [ruby/reline] fix Reline::Windows.getconsolemode buffer use double quotes to properly convert the \000 escape sequence. https://github.com/ruby/reline/commit/236dfe5683 --- lib/reline/windows.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 88f841c..6edc68e 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -103,7 +103,7 @@ class Reline::Windows https://github.com/ruby/ruby/blob/trunk/lib/reline/windows.rb#L103 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/