good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How to determine terminal size when piped data to STDIN?by hanenkamp (Pilgrim) |
on Nov 14, 2003 at 17:42 UTC ( [id://307118]=note: print w/replies, xml ) | Need Help?? |
I don't know if this is a typical option, but my man-page for stty shows a --file option where you can pick the file to check the parameters on. So, on Linux I can do this:
and get:
Since my Unix experience is pretty well limited to Linux, I can't be much help on other platforms. Update: I made a mistake, I used /dev/stdout in my actual test but wrote /dev/stdin here. If you have access to any console device and a --file option, it would work. However, as mushu points out below, that is not the case.
In Section
Seekers of Perl Wisdom
|
|