]> git.cworth.org Git - sup/commit
rewrap getch in select, handle sigwinch manually
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 6 Aug 2009 16:21:46 +0000 (12:21 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 6 Aug 2009 16:21:46 +0000 (12:21 -0400)
commit3478e400ae31b459b2875cc226796a6d4bba11f9
treef14092896e23f819e4a925caf12d5ea9bb9bb3ca
parent3b05864b538d3d1c7aa77bc5cc2e4db58f0c9a6d
rewrap getch in select, handle sigwinch manually

This is necessary to operate with many versions of the ruby ncurses library,
all of which block threads when getch is being called. But this means we can't
use getch to determine a sigwich, since we won't see it until an actual key is
pressed. so we handle sigwinch ourselves.
bin/sup
lib/sup/buffer.rb