From mboxrd@z Thu Jan 1 00:00:00 1970 From: benoit.pierre@gmail.com (=?utf-8?q?Beno=C3=AEt_PIERRE?=) Date: Sat, 15 Aug 2009 01:08:48 +0200 Subject: [sup-talk] [PATCH] Restore keypad mode after we force ncurses to refresh the whole screen. In-Reply-To: <1250289386-sup-7331@localdomain> References: <1250022259-sup-8328@masanjin.net> <1250028581-15826-2-git-send-email-benoit.pierre@gmail.com> <1250281039-sup-2788@masanjin.net> <1250289386-sup-7331@localdomain> Message-ID: <1250291137-sup-2796@localdomain> This also happen to fix a regression after a call to run-mailcap, since for some reason a screen resize event is triggered when we get control back... --- lib/sup/buffer.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index b3a256f..09281e9 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -270,6 +270,7 @@ EOS ## this magic makes Ncurses get the new size of the screen Ncurses.endwin + Ncurses.stdscr.keypad 1 Ncurses.refresh @sigwinch_mutex.synchronize { @sigwinch_happened = false } Redwood::log "new screen size is #{Ncurses.rows} x #{Ncurses.cols}" -- 1.6.3.3 -- A: Because it destroys the flow of conversation. Q: Why is top posting dumb? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: