From 06c37fa5b4834c81470213a04dc73a63e69e9776 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 1 Feb 2020 02:59:46 +0900 Subject: [ruby/reline] Bypass cursor down when a char is rendered at eol on Windows A newline is automatically inserted if a character is rendered at eol on Windows command prompt. https://github.com/ruby/reline/commit/4bfea07e4a --- lib/reline/windows.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/reline/windows.rb') diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 2492dffd27..22a009ea66 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -5,6 +5,10 @@ class Reline::Windows Encoding::UTF_8 end + def self.win? + true + end + RAW_KEYSTROKE_CONFIG = { [224, 72] => :ed_prev_history, # ↑ [224, 80] => :ed_next_history, # ↓ -- cgit v1.2.3