```{index} single: SetTerminalSize (Term::ReadKey) ``` ```{index} single: Term::ReadKey::SetTerminalSize ``` # SetTerminalSize Tell a terminal its size. ## Synopsis ```perl SetTerminalSize(132, 50, 0, 0, \*STDOUT); ``` ## What you get back 0. 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.