On Fri, 16 Oct 2020 at 08:00, Chris Angelico <ros...@gmail.com> wrote:

> On Fri, Oct 16, 2020 at 8:21 PM Rob Cliffe via Python-ideas
> <python-ideas@python.org> wrote:
> >
> >
> >
> > On 13/10/2020 23:35, Guido van Rossum wrote:
> > > Can one of the educators on the list explain why this is such a
> > > commonly required feature? I literally never feel the need to clear my
> > > screen -- but I've seen this requested quite a few times in various
> > > forms, often as a bug report "IDLE does not support CLS". I presume
> > > that this is a common thing in other programming environments for
> > > beginners -- even C++ (given that it was mentioned). Maybe it's a
> > > thing that command-line users on Windows are told to do frequently?
> > > What am I missing that students want to do frequently? Is it a
> > > holdover from the DOS age?
> > >
> > Sometimes I want a program that displays (more than 1 line of) real-time
> > information in a Windows CMD box and refreshes it every few seconds
> > (e.g. progress displays, monitoring open
> > files/locks/connections/downloads etc.).  It is natural to clear the
> > screen and display the updated information.
>
> Natural perhaps, but ugly. Much better to reposition the cursor and
> overwrite the previous text, with "clear to end of line" as required;
> that way, you avoid flicker.
>

Let me tell you what is ugly -
people doing `os.system("cls")` in otherwise what would otherwise
be a perfect multiplatform script.

And while we may question why people want this feature, fact is it is
requested
time and time again - and I'd find rather useful having it around when
answering
questions instead of having to say: "ok, if are on Mac or Linux, do
`print("\x1b[H")`, if you
are on windows.... `pip install colorama ...`.

Check for the occurrences of `os.system('cls')` in the Portuguese version
of stackoverflow, for example:
https://pt.stackoverflow.com/search?q=is%3Aanswer+os.system%28%27cls%27%29




> ChrisA
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/NA2NOM3EYQXYRCWN373SH3PV6PARLZ7H/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EJR32XUFFWB2YOKUSEDDKZMXV4NO3TEP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to