std.ps.tiocswinsz

std.ps

tiocswinsz(fd, rows, cols, xpixel, ypixel) -> ok, err

Set the window size of a terminal

Sets the window size of the terminal on fd, usually a PTY master: rows and cols of the grid, and its width and height in pixels. The pixel fields default to 0, which means unknown. Each value must lie in 0..65535, or the call raises. A change sends SIGWINCH to the terminal's foreground process group. Returns true, or nil and the error. Wraps the TIOCSWINSZ ioctl.