bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining term size after SIGWINCH?


From: NoOne
Subject: Determining term size after SIGWINCH?
Date: Fri, 15 Mar 2002 14:51:35 -0700 (MST)

Hi,

I hope this isn't an FAQ - I've looked through the ncurses docs and can't
find an answer...
I'm writing an app which has multiple ncurses windows on screen (not
subwindows) and I want the app to redraw itself to fill the terminal
properly after resizing.

I can catch the SIGWINCH just fine, but then how do I (platform
independently) determine the new size of the term? The LINES and COLS
variables don't update, so I'm considering trying to query the client
directly via a telnet NAWS request to get the new size. This would work
over a net connection, but not for Linux consoles or consoles on other
OSes.

Is there a better way to go about this? Is there an ncurses call I'm
missing?

Thanks,
-Russ Magee
 address@hidden
(Remove underscores to reply)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]