zvt supports ANSI colour escape sequences. If you pass the escape
sequences to the zvt widget, it will render them correctly. There should
be lots of docs on this somewhere on the net.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Fri, 12 Nov 1999, Hassan Aurag wrote:
>
>
> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
>
> On 11/12/99, 5:52:42 AM, Andreas Degert <[EMAIL PROTECTED]> wrote
> regarding Re: [pygtk] A question for Python Gurus:
>
>
> > Hassan Aurag <[EMAIL PROTECTED]> writes:
>
> > > I am still learning python, however in 'Learning Python' they give an
> > > example about how to redefine the print function using sys.stdout
> > > methods and say one can do the same with sys.stdin. So I thought it
> > > might be easy!
>
> > Of course you can redirect stdin like this:
>
> > sys.stdin = open("whatever")
>
> > Or just define a class providing the needed methods (python will
> > complain about what is missing...) and assign an instance to
> > sys.stdin.
>
> > Maybe you can use zvt to do the coloring, but then its not the python
> > program which does that, what I thought was what you wanted.
>
> Ok, then how does one tell zvt to do the coloring! The API docs say
> yes you can, but not how afaik.
> Looking at the functions in zvt.py didn't help me either!
>
> In any case, whatever one chooses, what I'd like to understand (if
> it is possible for me to do so) is how raw_input works or any other
> input thing! To be precise I'd love to pass input through a filter
> before displaying it! Which function does that, which method? Do I
> need to use something other than raw_input but can mimic it?
>
> Thanks again
>
>
>
>
>
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]