Simple prompt from documentation is not displayed correctly:
from prompt_toolkit import prompt
text = prompt('Give me some input: ') # Clears screen, but nothing can be seen only a cursor on first line and correct column.
print('You said: %s' % text)
It seems there is an issue with flushing the screen, but I'm not sure on which part. In docs, I haven't found anything that would help me resolve the problem.
I discovered that apps based on prompt-toolkit don't work in tox 4 environment properly, initial report in https://github.com/tox-dev/tox/issues/2936
The bug doesn't seem to have any effect on tests themselves, only interactive session used within tox 4.
MWE
Simple prompt from documentation is not displayed correctly:
It seems there is an issue with flushing the screen, but I'm not sure on which part. In docs, I haven't found anything that would help me resolve the problem.