From: "keiju (Keiju Ishitsuka)" Date: 2013-01-23T23:13:55+09:00 Subject: [ruby-core:51597] [ruby-trunk - Bug #5023] irb does not like window resizes Issue #5023 has been updated by keiju (Keiju Ishitsuka). zzak (Zachary Scott) wrote: > I think we just need to backport to 1.9.3 branch, but I'm not sure what to backport. I have identified a commit which solve this problem. The commit is revision 36130. I think the following is applied only: --- ext/readline/readline.c (revision 38896) +++ ext/readline/readline.c (working copy) @@ -1679,9 +1679,7 @@ #ifdef HAVE_RL_CATCH_SIGNALS rl_catch_signals = 0; #endif -#ifdef HAVE_RL_CATCH_SIGWINCH - rl_catch_sigwinch = 0; -#endif + #ifdef HAVE_RL_CLEAR_SIGNALS rl_clear_signals(); #endif ---------------------------------------- Bug #5023: irb does not like window resizes https://bugs.ruby-lang.org/issues/5023#change-35553 Author: michas (Michael Schnupp) Status: Assigned Priority: Normal Assignee: keiju (Keiju Ishitsuka) Category: Target version: 2.0.0 ruby -v: ruby 1.9.3dev (2011-07-10 trunk 32499) [x86_64-linux] - open irb - type until line wraps to the next line - increase the width of the terminal - notice that the text of in the second line will not come up to the first line. -> there is no more useful display/navigation in long lines unless window is resized to exactly the same width. :( My irb uses libreadline. (Readline module is visible and config in ~/.inputrc is applied.) Other readline applications like bash do not have that problem. irb in 1.8 works fine, too. all versions of 1.9 (including head) have the described problem. (I tested mainly on my ubuntu box.) -- http://bugs.ruby-lang.org/