<div dir="ltr"><div>Hello,</div><div><br></div><div><br></div><div>It doesn't work in Windows.</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>JM</div><div><br><br>terça-feira, 27 de Setembro de 2016 às 16:40:42 UTC+1, Dennis Brakhane via Python-ideas escreveu:</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">I don't know if it works on Windows, but at least in Linux pressing
<br>Ctrl-L will do exactly what you describe (as long as the REPL uses readline)
<br>
<br>On 17.09.2016 12:51, João Matos wrote:
<br>> Hello,
<br>>
<br>> I would like to suggest adding a clear command (not function) to Python.
<br>> It's simple purpose would be to clear the REPL screen, leaving the >>>
<br>> prompt at the top left of the screen.
<br>>
<br>> This is something very basic but also very useful for newbies learning
<br>> Python from the REPL.
<br>> After some trial and errors it is best to start with a clean screen.
<br>> Clearing the screen helps clear your mind.
<br>>
<br>> Historically it is a common command in interpreted languages.
<br>>
<br>> Best regards,
<br>>
<br>> JM
<br>>
<br>> ______________________________<wbr>_________________
<br>> Python-ideas mailing list
<br>> <a onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="l-vuY6gsBQAJ">Python...@python.org</a>
<br>> <a onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;" href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank" rel="nofollow">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a>
<br>> Code of Conduct: <a onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;" href="http://python.org/psf/codeofconduct/" target="_blank" rel="nofollow">http://python.org/psf/<wbr>codeofconduct/</a>
<br>
<br>
<br>
<br></blockquote></div>