From: BenoƮt PIERRE Date: Fri, 14 Aug 2009 23:08:48 +0000 (+0200) Subject: restore keypad mode after we force ncurses to refresh the whole screen X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a26d92147a34f6dc26646acd2170751dc474417a;p=sup restore keypad mode after we force ncurses to refresh the whole screen 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... --- diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 5881feb..7605e52 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -268,6 +268,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}"