[Top][All Lists]

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

SIGWINCH problem

From: maxim maxim
Subject: SIGWINCH problem
Date: Sun, 21 Dec 2008 14:09:36 +0200

Hi, i need your help in some issue.
i'm trying to work in curses mode and i have problem with resizing (minimizing) a window of a terminal.
my signal handler function is :
void sig_winch(int signo)
     struct winsize size;
     ioctl(fileno(stdout), TIOCGWINSZ, (char*)&size);
    resizeterm(size.ws_row, size.ws_col);

after getting the signal SIGWINCH( when i'm minimizing the window) i see the output on the window is ok, and when i try to print with printw() or addstr() i see the half of the window is deleted. How i can to solve this problem.

Thank you for your time

reply via email to

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