Hacker News new | ask | show | jobs
by syrrim 1133 days ago
Most implementations I've seen use an ioctl to query those particular bits. That's implemented quite reliably, since the same ioctl is used for character size as window size. Some implementations just set the character size to zero though.
1 comments

Ioctl doesn't work over a serial port. The escape code queries are more general.