Termcap/terminfo for Python?

Oleg Broytmann phd at phd.pp.ru
Thu Oct 18 10:09:43 CEST 2001

On Wed, Oct 17, 2001 at 05:24:35PM -0400, Greg Ward wrote:
> 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")

   Now thank YOU :) I think I'll easily find neccessary information on it.
I didn't know about tiget* functions before your question. But I thought
"well, there is no direct termcap/info interfaces, may be curses?" and
found all neccessary things in docs :) I ran an example, got a traceback
with the mesage "at least run setupterm()" - and voila! :)

     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-list mailing list