1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use rl_prep_terminal only on Windows. [ruby-core:25009]

* ext/readline/readline.c (readline_readline): use rb_prep_terminal
  only on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-08-21 06:04:21 +00:00
parent 09cbac3f86
commit 7510468707
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Aug 21 15:01:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
* ext/readline/readline.c (readline_readline): use rb_prep_terminal
only on Windows.
Fri Aug 21 07:25:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/ri/gemdirs.rb: split from lib/rdoc/ri/paths.rb to ge

View file

@ -144,7 +144,6 @@ readline_event(void)
static VALUE
readline_get(VALUE prompt)
{
rl_prep_terminal(1);
return (VALUE)readline((char *)prompt);
}
@ -250,6 +249,9 @@ readline_readline(int argc, VALUE *argv, VALUE self)
if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "closed stdin");
#ifdef _WIN32
rl_prep_terminal(1);
#endif
buff = (char*)rb_protect(readline_get, (VALUE)prompt, &status);
if (status) {
#if defined HAVE_RL_CLEANUP_AFTER_SIGNAL