[前][次][番号順一覧][スレッド一覧]

ruby-changes:12862

From: naruse <ko1@a...>
Date: Thu, 20 Aug 2009 14:44:52 +0900 (JST)
Subject: [ruby-changes:12862] Ruby:r24594 (trunk): Fix: change terminal's size on Widows when the window size is changed

naruse	2009-08-20 14:44:28 +0900 (Thu, 20 Aug 2009)

  New Revision: 24594

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24594

  Log:
    Fix: change terminal's size on Widows when the window size is changed
    * ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
      insited by jitte [ruby-list:43546]

  Modified files:
    trunk/ChangeLog
    trunk/ext/readline/readline.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24593)
+++ ChangeLog	(revision 24594)
@@ -1,3 +1,8 @@
+Thu Aug 20 14:39:47 2009  NARUSE, Yui  <naruse@r...>
+
+	* ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
+	  insited by jitte [ruby-list:43546]
+
 Thu Aug 20 12:09:01 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (ivar2_hash_type): disabled for now.
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c	(revision 24593)
+++ ext/readline/readline.c	(revision 24594)
@@ -144,6 +144,7 @@
 static VALUE
 readline_get(VALUE prompt)
 {
+    rl_prep_terminal(1);
     return (VALUE)readline((char *)prompt);
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]