|
From: | Bryan Christ |
Subject: | Re: Change terminal attributes |
Date: | Fri, 11 May 2007 09:42:50 -0500 |
User-agent: | Thunderbird 1.5.0.10 (X11/20070302) |
When the terminal is resized the signal SIGWINCH is delivered to your program. If you are using ncurses, this signal is caught by a default handler and you will get a value of KEY_RESIZE when you make the next call to getch().
If you are running other process or writing your own terminal emulator, it is likely you will then want to deliver SIGWINCH to the foreground job and (possibly) issue the TIOCSWINSZ ioctl to the pty.
For more information, take a look at the man pages for resizeterm() and tty_ioctl().
Francesco Esposito wrote:
Hi all,I would like to install a new action in my software that will consist to resize terminal attributes(size, font,...) at run time.My software is ncurses-based.Do you have any suggestion? Thanks,Francesco------------------------------------------------------------------------ _______________________________________________ Bug-ncurses mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-ncurses
[Prev in Thread] | Current Thread | [Next in Thread] |