commit a26d92147a34f6dc26646acd2170751dc474417a
parent 9edd376555a9b946a1c194582c8de8854da628e2
Author: BenoƮt PIERRE <benoit.pierre@gmail.com>
Date: Sat, 15 Aug 2009 01:08:48 +0200
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...
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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}"