]> git.cworth.org Git - sup/commitdiff
redraw screen upon sigwinch
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 23 Mar 2009 12:27:27 +0000 (08:27 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 23 Mar 2009 12:27:27 +0000 (08:27 -0400)
I feel like I tried this at some point and it didn't work, but I don't
remember the specifics.

Modified from a patch from Liam O'Connor-Davis <whiteslug@gmail.com>

bin/sup

diff --git a/bin/sup b/bin/sup
index b2b2f626d79ff3675d8edbc6bb18bf1a40483ae9..735948e964610083c59347a9dec9d3b2abf5ad85 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -160,6 +160,7 @@ begin
   Logger.make_buf
 
   bm.draw_screen
+  trap("SIGWINCH") { bm.completely_redraw_screen }
 
   Index.usual_sources.each do |s|
     next unless s.respond_to? :connect