[Python-ideas] Suggestion: Clear screen command for the REPL

Chris Angelico rosuav at gmail.com
Sun Sep 18 22:40:32 EDT 2016


On Mon, Sep 19, 2016 at 12:32 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> (The fallback if all else fails is easy: get the height of the terminal,
> in lines, and print that many blank lines.)

Assuming you can get the height in lines. Have you tried that in the
default Windows shell? I don't think tcgetattr works on Windows.

ChrisA


More information about the Python-ideas mailing list