Comment Comment by kevin_thibedeau You don't have to use the ioctl. The xterm escape code to query window size is widely supported across terminal emulators. It has the distinct advantage of working remotely and from non-unix systems. parent kevin_thibedeau 2 years ago