Termcap/terminfo for Python?

Greg Ward gward at mems-exchange.org
Wed Oct 17 17:24:35 EDT 2001


On 17 October 2001, Oleg Broytmann said:
>    curses.tigetflag
>    curses.tigetnum
>    curses.tigetstr

Ahh, thank you.

>    I don't know which attributes describe width/height of a terminal.

For the record:
  curses.tigetnum("cols")
  curses.tigetnum("lines")

        Greg
-- 
Greg Ward - software developer                gward at mems-exchange.org
MEMS Exchange                            http://www.mems-exchange.org




More information about the Python-list mailing list