]> git.cworth.org Git - sup/commitdiff
restore keypad mode after we force ncurses to refresh the whole screen
authorBenoît PIERRE <benoit.pierre@gmail.com>
Fri, 14 Aug 2009 23:08:48 +0000 (01:08 +0200)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 16 Aug 2009 21:59:48 +0000 (17:59 -0400)
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

index 5881febcf7e68c12df715d61baea7d05393232a9..7605e52d9275ec3e713d4faeb47c3c5d25ee581c 100644 (file)
@@ -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}"