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:
parent
16d4774da1
commit
06c37fa5b4
4 changed files with 23 additions and 3 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue