summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-03-23 00:49:58 +0900
committeraycabta <aycabta@gmail.com>2021-03-24 15:43:10 +0900
commitb764c8d3c05170214802a947b2fd32c91c6cfd68 (patch)
tree9585b881c401889901242d966e751015d862122e /lib/reline.rb
parenta5b6baae97a31f24483b2b59744799852bacc7d1 (diff)
[ruby/reline] Add Reline.ungetc to control buffer
https://github.com/ruby/reline/commit/43ac03c624
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 81ea9f9b58..a7bd4d9280 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -446,6 +446,10 @@ module Reline
}
end
+ def self.ungetc(c)
+ Reline::IOGate.ungetc(c)
+ end
+
def self.line_editor
core.line_editor
end