From a26d92147a34f6dc26646acd2170751dc474417a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20PIERRE?= Date: Sat, 15 Aug 2009 01:08:48 +0200 Subject: [PATCH] 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... --- lib/sup/buffer.rb | 1 + 1 file changed, 1 insertion(+) 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}" -- 2.43.0