Exploring terminfo

Chris Angelico rosuav at gmail.com
Sat Jan 16 19:14:32 EST 2021


On Sun, Jan 17, 2021 at 11:06 AM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> On 17/01/21 12:40 pm, Chris Angelico wrote:
> > This is true. However, at some point, the boundary is crossed from
> > Python into the C library. Something, at that point, knows. It's very
> > common to have a flush option available, so it should be used.
>
> I'm wondering whether the problem in this particular case stems
> from trying to use parts of curses without initialising it
> properly. I expect that initialising curses would put stdout
> into some kind of unbuffered mode, and the rest of it assumes
> that this has been done.
>

I'm not familiar with the curses module, but that sounds extremely plausible.

ChrisA


More information about the Python-list mailing list