- SIGWINCH
Infobox Computing signal
name = SIGWINCH (non-POSIX)
description = Window resize signal (4.3BSD, Sun)
action = Ignore the signalOn someUnix-like platforms, SIGWINCH is the signal sent to acomputer program when its controlling terminal changes size. The symbolic constant for SIGWINCH is defined in theheader file signal.h
. Symbolic signal names are used because signal numbers can vary across platforms.Etymology
"SIG" is a common prefix for signal names. "WINCH" is an abbreviation for "window [size] change".
Usage
SIGWINCH is sent when the controlling terminal of a process changes dimensions. Typically this occurs when an
xterm or otherterminal emulator running in awindowing system is resized, although it can also occur on atext console , for example when the user is running a text windowing system such asGNU Screen . Processes that handle SIGWINCH can use it as an opportunity to find out the new dimensions of the terminal and adjust accordingly (inncurses -based applications, resizing dialog boxes; in the shell, setting the values of theCOLUMNS
andLINES
environment variable s).Usually it's used to fix the following problem: [http://lwn.net/Articles/88243/ Terminals crap on greater than 80 columns] .
Wikimedia Foundation. 2010.