I don't know if it works on Windows, but at least in Linux pressing
Ctrl-L will do exactly what you describe (as long as the REPL uses readline)

On 17.09.2016 12:51, João Matos wrote:
> Hello,
>
> I would like to suggest adding a clear command (not function) to Python.
> It's simple purpose would be to clear the REPL screen, leaving the >>>
> prompt at the top left of the screen.
>
> This is something very basic but also very useful for newbies learning
> Python from the REPL.
> After some trial and errors it is best to start with a clean screen.
> Clearing the screen helps clear your mind.
>
> Historically it is a common command in interpreted languages.
>
> Best regards,
>
> JM
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to