diff options
| -rw-r--r-- | ChangeLog | 10 | ||||
| -rw-r--r-- | ext/readline/readline.c | 3 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,13 @@ +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. + +Thu Aug 20 14:39:47 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * ext/readline/readline.c (Init_readline): add rl_prep_terminal(1). + insited by jitte [ruby-list:43546] + Thu Aug 20 08:39:50 2009 Yukihiro Matsumoto <matz@ruby-lang.org> * thread.c (rb_thread_terminate_all): do not ignore interrupt when diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 90eaeec39..48be2b843 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -225,6 +225,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((VALUE(*)_((VALUE)))readline, (VALUE)prompt, &status); if (status) { @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 299 +#define RUBY_PATCHLEVEL 300 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |
