Re: curses and processing terminal escape characters

2010-10-30 Thread Emile van Sebille
On 10/29/2010 9:48 PM Lawrence D'Oliveiro said... In message, Tim Harig wrote: Python could easily process the escape codes for any given terminal; but, in general, you would want something that works for more then a single terminal type. Does anyone still bother with anything other than VT1x

Re: curses and processing terminal escape characters

2010-10-30 Thread Tim Harig
On 2010-10-30, Lawrence D'Oliveiro wrote: > In message , Tim Harig wrote: > >> Python could easily process the escape codes for any given terminal; but, >> in general, you would want something that works for more then a single >> terminal type. > > Does anyone still bother with anything other than

Re: curses and processing terminal escape characters

2010-10-29 Thread Lawrence D'Oliveiro
In message , Tim Harig wrote: > Python could easily process the escape codes for any given terminal; but, > in general, you would want something that works for more then a single > terminal type. Does anyone still bother with anything other than VT1xx-type terminals? -- http://mail.python.org/ma

Re: curses and processing terminal escape characters

2010-10-29 Thread Dan Stromberg
On Fri, Oct 29, 2010 at 10:35 AM, Tim Harig wrote: > On 2010-10-29, mix wrote: > > Hi, > > > > I'm wondering if there is a way in python to process a string > > containing terminal escape characters. Example: Please consider the > > following string: > > Python could easily process the escape co

Re: curses and processing terminal escape characters

2010-10-29 Thread Tim Harig
On 2010-10-29, mix wrote: > Hi, > > I'm wondering if there is a way in python to process a string > containing terminal escape characters. Example: Please consider the > following string: Python could easily process the escape codes for any given terminal; but, in general, you would want somethin

curses and processing terminal escape characters

2010-10-29 Thread mix
Hi, I'm wondering if there is a way in python to process a string containing terminal escape characters. Example: Please consider the following string: str = ''\x1B[K\x1B[D\x1B[D\x1B[D\x1B[D\x1B[C\x1B[C\x1B[C\x1B[C \x1b[d\x1b[d\x...@q\x1b[@q\x...@q'' as a result of printing it (print str), t