SetTerminalSize#

Tell a terminal its size.

Synopsis#

SetTerminalSize(132, 50, 0, 0, \*STDOUT);

What you get back#

  1. The size is the terminal’s record, read by the programs on it (a change sends them SIGWINCH); the window does not change. COLUMNS and LINES are set for child processes, not in %ENV. A handle that is not a terminal dies “TIOCSWINSZ ioctl call to set terminal size failed: “ and the system’s reason.