summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-01 16:19:31 +0900
committeraycabta <aycabta@gmail.com>2021-09-01 17:29:01 +0900
commitba0464e0cfff4fa0ad414c912b3e304403d07226 (patch)
tree17d31762a1edb29af14581874e291d7f4bf3e745 /lib
parentcb3df3d87b2b861ce79974cd259dafdc0d5253b8 (diff)
Reline::GeneralIO should work fine without tty
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4796
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/general_io.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb
index 2f87d718c6..5df346882a 100644
--- a/lib/reline/general_io.rb
+++ b/lib/reline/general_io.rb
@@ -24,6 +24,7 @@ class Reline::GeneralIO
end
@@buf = []
+ @@input = STDIN
def self.input=(val)
@@input = val