On Tue, May 11, 2021 at 4:07 PM Gregory P. Smith <g...@krypto.org> wrote:
> > > On Tue, May 11, 2021 at 3:33 PM Mike Miller <python-...@mgmiller.net> > wrote: > >> >> On 5/11/21 1:57 AM, Baptiste Carvello wrote: >> > Le 11/05/2021 à 09:35, Steven D'Aprano a écrit : >> >> On Mon, May 10, 2021 at 09:44:05PM -0400, Terry Reedy wrote: >> >> >> >>> The vanilla interpreter could be updated to recognize when it is >> running >> >>> on a similated 35-year-old terminal that implements ansi-vt100 color >> >>> codes rather than a similated 40+-year-old black-and-white >> teletype-like >> >>> terminal. >> >> >> >> This is what is called "scope creep", although in this case >> >> perhaps "scope gallop" is more appropriate *wink* >> >> [...] >> > >> > Also: people paste tracebacks into issue reports, so all information has >> > to survive copy-pasting. >> > >> >> The first ANSI standard supported underlined text, didn't it? The VT100 >> did. >> That would make it part of the 40+ year old subset from the late 70's. >> >> While color might stand out more, underline suits the problem well, also >> without >> increasing the line count. >> >> There are a number of terminal emulators that support rich text copies, >> but not >> all of them. This is added information however, so it not being >> copy-pastable >> everywhere shouldn't be a blocking requirement imho. >> > > fancier REPL frontends have supported things like highlighting and such in > their tracebacks, I expect they'll adopt column information and render it > as such. > > There's a difference between tracebacks dumped as plain text (utf-8) by > traceback.print_exc() appearing on stderr or directed into log files and > what can be displayed within a terminal. It is highly unusual to emit > terminal control characters into log files. > And yet it happens all the time. :-( Let's not risk that happening. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/ZR4VCUXV4GQB2KT2MFWNLJ7I4YXLZGMN/ Code of Conduct: http://python.org/psf/codeofconduct/