Note that in principle you could do it all in Python -- with the
(optional) fcntl module you can make the necessary ioctl calls and
then just read the termcap file and generate the proper calls.
Alternatively, there's a "character-cell device" version of STDWIN
(the "alfa" port) which uses termcap. It is line oriented but has the
advantage of making the transition from a termcap application to a
windowing application relly smooth...
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>