Török Edwin wrote:
> On 2009-03-05 23:36, Dennis Peterson wrote:
>>>
>>>
>> It knows when a window grows, x and y, but not when it shrinks.
>>
>
> I found this in the ncurses changelog between 5.4 -> 5.5:
> 20040731
> + modify test/cardfile.c to allow it to read more data than can be
> displayed.
> + correct logic in resizeterm.c which kept it from processing all
> levels of window hierarchy (reports by Folkert van Heusden,
> Chris Share)
>
> I don't think there is anything I can do in clamdtop regarding this, sorry.
This works:
#include <ncurses.h>
int main(void) {
WINDOW * stdscr = initscr();
int width, height;
while (1) {
getmaxyx(stdscr, height, width);
mvprintw(0,0,"%d %d %o\n", height, width, getch());
refresh();
}
return 0;
}
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml