diff options
author | aycabta <aycabta@gmail.com> | 2019-05-24 23:38:40 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-24 23:38:40 +0900 |
commit | eb4e774711b17b8a25a7b16c4f0b6044da3dc261 (patch) | |
tree | d33f0bfb2087ee0169422d08b8553678fd189f75 /lib/reline/windows.rb | |
parent | 2d34087a38ac680c5576a56fbf4104c3561b0204 (diff) |
Support Meta key in Reline
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r-- | lib/reline/windows.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 2e7ed89ff9..842760e5bd 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -101,6 +101,10 @@ class Reline::Windows end end + def self.ungetc(c) + @@buf.unshift(c) + end + def self.get_screen_size csbi = 0.chr * 24 @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) |