Best way of finding terminal width/height?

Donn Cave donn at u.washington.edu
Thu Feb 9 13:38:30 EST 2006


In article <11uk67a4ao5efe6 at corp.supernews.com>,
 Grant Edwards <grante at visi.com> wrote:

>  2) It also says that it makes sense to continue to read a tty
>     after you get an EOF.  That's not true.  Once you get an
>     EOF on a tty, there's no point in reading it any more:
>     you'll continue to get an EOF forever.

They were probably thinking of the way the UNIX tty
driver delivers an EOF on <ctrl>D, after which of
course you can continue to read data from the same tty.

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list