mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Emulate Unix like terminals that sends Alt+key as \e+key
https://github.com/ruby/reline/commit/dc2cf90fa6
This commit is contained in:
parent
9e0caba187
commit
057ab5f056
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@ class Reline::Windows
|
|||
# no char, only control keys
|
||||
return if key.char_code == 0 and key.control_keys.any?
|
||||
|
||||
@@output_buf.push("\e".ord) if key.control_keys.include?(:ALT)
|
||||
|
||||
@@output_buf.concat(key.char.bytes)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue