Exploring terminfo

Random832 random832 at fastmail.com
Mon Jan 18 17:14:48 EST 2021


On Fri, Jan 15, 2021, at 13:36, Alan Gauld via Python-list wrote:
> That could make a big difference, the putp() function specifically
> states that it writes to stdout.

I think there is a reasonable argument that this is a deficiency of the curses module.

I think that the curses module should A) expose a version of tputs that accepts a python callback to process each output byte B) expose a version of putp that uses python's stdout[.buffer].write rather than C's putchar.


More information about the Python-list mailing list