On 2021-01-19, Greg Ewing <greg.ew...@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 -- https://mail.python.org/mailman/listinfo/python-list