My perl correspondent uses: use Term::ReadKey; ($cols,$lines)=GetTerminalSize() What is the python equivalent ? If I don't come up with one, python looses ten points. egbert -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991 ========================================================================