bug-ncurses
[Top][All Lists]
Advanced

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

resize


From: Folkert van Heusden
Subject: resize
Date: Mon, 21 Jun 2004 20:07:32 +0200 (CEST)

Hi,

I was wondering: what is *the* procedure for handling screenrefreshes?
I saw endwin() + refresh() but also someone doing endwin() and initscr().
Furthermore: when should I do the resizeterm and such?
I'm asking this since in some situation resizing seems to fail.

What I'm doing now is:
SIGWINCH-handler:
        ioctl(1, TIOCGWINSZ, &size);
        max_y = size.ws_row;
        max_x = size.ws_col;

and after that (NOT in the signalhandler itself: I use some global variable
to alert the main loop):

        resizeterm(max_y, max_x);
        touchwin(stdscr);
        endwin();
        refresh();


Folkert van Heusden

+--------------------------------------------------------------------------+
| UNIX sysop? Then give MultiTail ( http://www.vanheusden.com/multitail/ ) |
| a try, it brings monitoring logfiles to a different level! See:          |
| http://www.vanheusden.com/multitail/features.html for a feature list.    |
+---------------------------------------------------= www.vanheusden.com =-+





reply via email to

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