Should be portable on POSIX, at least.
In reply to Re: bulletproof way of finding size of terminal? by Joost in thread bulletproof way of finding size of terminal? by bcrowell2