[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to dynamically change the window's layout and size ?
From: |
John Daker |
Subject: |
Re: How to dynamically change the window's layout and size ? |
Date: |
Fri, 7 Nov 2008 14:04:31 +0800 |
I dont know if it is the right place to ask, since I'm new to ncurses
and cannot find any place discuss programming with ncurses, so forgive
me if it's not.
My program has a window layout like :
100% * Konsole's length
++++++++++++++++++++++++++++++++
+ + 20% * Konsole's high
++++++++++++++++++++++++++++++++
+ +
+ + 80% *
Konsole's high
+ +
++++++++++++++++++++++++++++++++
What I'm doing now if something like this: hard-code
getmaxyx(stdscr, rows, cols);
newwin.....
If I resize Konsole, this app wont change it's layout.
What's the technique?
Would it be possible to show some sample code?
Thanks.
On Fri, Nov 7, 2008 at 7:12 AM, Thomas Dickey <address@hidden> wrote:
> On Thu, Nov 06, 2008 at 07:56:32PM +0800, John Daker wrote:
>> Hi all
>> I'm writing a program within ncurses and have no idea how to
>> ..dynamically change the window's dimensions
>>
>> I'm using Konsole to exec the program, and when I resize the Konsole,
>> it seems that ncurses dont change the window to fit with Konsole.
>>
>> So how to dynamically change the window's dimensions ?
>
> It "should" work. The usual problem (in the past couple of years) has
> been a "feature" of bash that doesn't pass the SIGWINCH on unless it's
> setup properly.
>
> --
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkkTedgACgkQcCNT4PfkjtsIogCfbu0zxMPMkFI2ibUoMSTYv6CU
> OvIAnjoGomIURsMURoOkzy6jLPFKxs7M
> =+5B4
> -----END PGP SIGNATURE-----
>
>