* [sup-talk] Handling window resizing
[not found] <391beaa80905201334y4c1832adp161bb28d52f08e1@mail.gmail.com>
@ 2009-05-21 1:31 ` Henri Ducrocq
2009-05-21 15:22 ` William Morgan
0 siblings, 1 reply; 2+ messages in thread
From: Henri Ducrocq @ 2009-05-21 1:31 UTC (permalink / raw)
Excerpts from Henri Ducrocq's message of Wed May 20 21:34:36 +0100 2009:
> I'm using a tiling window manager and my windows get resized quite
> frequently. However Sup isn't detecting these events and I have to press
> Control-L to redraw the screen.
I tried to do it myself, first by checking for Ncurses::KEY_RESIZE in
nonblocking_getch in buffer.rb (couldn't work because of the IO.select),
then slightly less unsuccessfully by catching the WINCH event, but it
looks like the signal isn't emitted in a completely consistent manner
every time I resize the window.
Any advice William? (Of course I'm secretly hoping you're gonna fix it
yourself :)
--
Henri
^ permalink raw reply [flat|nested] 2+ messages in thread
* [sup-talk] Handling window resizing
2009-05-21 1:31 ` [sup-talk] Handling window resizing Henri Ducrocq
@ 2009-05-21 15:22 ` William Morgan
0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2009-05-21 15:22 UTC (permalink / raw)
Reformatted excerpts from Henri Ducrocq's message of 2009-05-20:
> I tried to do it myself, first by checking for Ncurses::KEY_RESIZE in
> nonblocking_getch in buffer.rb (couldn't work because of the
> IO.select), then slightly less unsuccessfully by catching the WINCH
> event, but it looks like the signal isn't emitted in a completely
> consistent manner every time I resize the window.
>
> Any advice William?
Sadly no. There have been various attempts, by myself and others to trap
sigwinch (see e.g.
http://www.nabble.com/The-recent-patch-"redraw-screen-upon-sigwinch"-td22662878.html
which is referencing commit 9bc61b52f1a4fb3492e3799240815ed0c2a7b67f)
and to handle Ncurses::KEY_RESIZE, but something always seems screwey.
A free copy of Sup to anyone who figures this out.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-21 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <391beaa80905201334y4c1832adp161bb28d52f08e1@mail.gmail.com>
2009-05-21 1:31 ` [sup-talk] Handling window resizing Henri Ducrocq
2009-05-21 15:22 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox