1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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.

4bfea07e4a
This commit is contained in:
aycabta 2020-02-01 02:59:46 +09:00
parent 16d4774da1
commit 06c37fa5b4
4 changed files with 23 additions and 3 deletions

View file

@ -5,6 +5,10 @@ class Reline::GeneralIO
RUBY_PLATFORM =~ /mswin|mingw/ ? Encoding::UTF_8 : Encoding::default_external
end
def self.win?
false
end
RAW_KEYSTROKE_CONFIG = {}
@@buf = []