Justin C. Walker wrote: > > On Jan 27, 2008, at 08:28 , Jaap Spies wrote: > >> Jaap Spies wrote: >>> William Stein wrote: >> >> In >> aString = self.eval('cputime(%s)'%t) >> IDENTITY_MAP = ''.join([chr(x) for x in range(256)]) >> BAD_MAP = ''.join([chr(x) for x in range(32) + [124]]) >> aNewString = aString.translate(IDENTITY_MAP, BAD_MAP) >> return float(aNewString) >> >> only the control characters are filtered out. >> >> What can be the meaning of escape followed by a string like "[0;31m >> [0m" >> (also see below)? And where is it coming from? >> >>>> I wonder if the notebook works kind of funky for you on that >>>> same computer? I mean, if there are funny control codes everywhere >>>> in sage0, then that would impact the notebook as well, possibly. >>>> >>> This test first failed in sage-2.10.1.alpha1. As did the notebook() >>> with gnutls related problems. >>> I removed the alpha0, but on sage-2.10, I got >>> sage -t devel/sage-main/sage/interfaces/sage0.py ^[[?1034h >>> [23.4 s] >>> >>> ------------------------------------------------ >>> Note the strange characters, or are they intentionally there? >>> >> In test.log I see them all the time: >> >> sage -t devel/sage-main/sage/monoids/ >> free_abelian_monoid_element.py^[[?1034h >> [1.6 s] >> sage -t devel/sage-main/sage/monoids/string_ops.py ^[[?1034h >> [1.5 s] >> sage -t devel/sage-main/sage/monoids/free_monoid.py ^[[?1034h >> [1.6 s] >> sage -t devel/sage-main/sage/monoids/monoid.py ^[[?1034h >> [1.5 s] >> sage -t devel/sage-main/sage/monoids/string_monoid.py ^[[?1034h > > FWIW, these look like "escape codes" for screen control, a la curses > (3). Are you viewing at the log file through 'tail' or something > similar? >
No, this 'codes' are in the log file. Viewed with vi, but also visible with od -c > The sequence "ESC[" (or "^[[") is the Control Sequence Indicator/ > Introducer. There's a pretty accessible description of this stuff at > <http://en.wikipedia.org/wiki/ANSI_escape_code> > Thanks. Jaap > Justin > > -- > Justin C. Walker, Curmudgeon-at-Large > () The ASCII Ribbon Campaign > /\ Help Cure HTML Email > > > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---