diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-17 16:18:56 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-17 16:18:56 +0000 |
commit | dd90846fbbdbae0c34e35b0028c6b48c3afc7446 (patch) | |
tree | c5ad114e73db2ac4f933c59a424c7c87f6883385 /lib/irb/input-method.rb | |
parent | fc47936463de22aeb605c0bb3d0a2b452028e6ff (diff) | |
download | ruby-dd90846fbbdbae0c34e35b0028c6b48c3afc7446.tar.gz ruby-dd90846fbbdbae0c34e35b0028c6b48c3afc7446.tar.xz ruby-dd90846fbbdbae0c34e35b0028c6b48c3afc7446.zip |
* ext/readline/readline.c (readline_readline): do not set rl_{in,out}stream.
* ext/readline/readline.c (readline_s_set_input): new method.
* ext/readline/readline.c (readline_s_set_output): new method.
* lib/irb/input-method.rb: set Readline.input and Readline.output.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r-- | lib/irb/input-method.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 045bbd169..a0fa359d3 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -94,6 +94,8 @@ module IRB end def gets + Readline.input = STDIN + Readline.output = STDOUT if l = readline(@prompt, false) HISTORY.push(l) if !l.empty? @line[@line_no += 1] = l + "\n" |