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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton