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

Steven D'Aprano steve at pearwood.info
Wed Sep 28 22:04:28 EDT 2016


On Tue, Sep 27, 2016 at 10:05:16AM -0700, João Matos wrote:
> Hello,
> 
> 
> It doesn't work in Windows.

What is "it"? Are you talking about Ctrl-L to clear the screen?


Perhaps we should start by adding Ctrl-L as a standard way to clear the 
Python REPL, in the same way that Ctrl-C is the standard way to 
interrupt the interpreter regardless of whether you are using Linux, Mac 
or Windows.

(Also, it seems a shame that Ctrl-D is EOF in Linux and Mac, but Windows 
is Ctrl-Z + Return. Can that be standardized to Ctrl-D everywhere?)


-- 
Steve


More information about the Python-ideas mailing list