bug-ncurses
[Top][All Lists]
Advanced

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

Re: How to dynamically change the window's layout and size ?


From: Thomas Dickey
Subject: Re: How to dynamically change the window's layout and size ?
Date: Fri, 7 Nov 2008 20:55:07 -0500 (EST)

On Fri, 7 Nov 2008, Howard wrote:

In fluxbox xterm on FC6 I get the same as you describe , and why not?
I am new to ncurses too. It seems to me that once something is written
to the screen buffer it's going to stay in the same locations until it is
re-written to a different location.
So our programs need to detect and handle screen resize events.
The 'handling' will be different from program to program.
There's no way ncurses could anticipate what your program should do.

agree - ncurses can only detect that the screensize has changed, and can
make some simple adjustments, e.g., so stdscr is resized, and windows
are reduced to fit (or filled with blanks).  Your application should
check for KEY_RESIZE returned from wgetch...

Several of the test-programs in ncurses' source do these checks.
Also, the dialog program handles resizing.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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