Exploring terminfo

Grant Edwards grant.b.edwards at gmail.com
Tue Jan 19 10:16:40 EST 2021


On 2021-01-19, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> On 19/01/21 2:34 pm, Alan Gauld wrote:
>> To be fair that's a limitation of the C curses library. putp() is a
>> wrapper around tputs() even there, and you can't change what it does.
>> The gap in the curses module is that it doesn't offer the tputs()
>> option as an alternative.
>
> Seems to me it would be useful to have something that returns
> what tputs() would have output, as a string, so you can send it
> where you want.

I tried to do that using ctypes by passing tputs() a Python "putc"
callback, but I couldn't get it to work (the callback never got
called).

--
Grant





More information about the Python-list mailing list