Re: Fwd: [pygtk] A weird problem with raw_input and zvt





I also wanted to add that I really tested it this time.

If I remove the color escape sequence, ALL GOES WELL!

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 11/22/99, 11:20:29 PM, Hassan Aurag <aurag@CRM.UMontreal.CA> wrote 
regarding Re: Fwd: [pygtk] A weird problem with raw_input and zvt:


> Ok,

> This is getting weirder but NOW I KNOW.

> It is not any of the below.

> Here goes, my prompt is like this:

> "\033[0;34mGIn["+ str(self.history_index) +"] := \033[0;39m"

> See I am making it blue then going back.

> THIS IS WHAT DRIVES THE TERMINAL NUTS, when I use
> raw_input(self.prompt)

> If I use raw_input('hello: ') all goes well.

> So it seems, it doesn't like those escape sequences.

> My question is, what is the escape sequance that resets it all!

> Thanks again


> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

> On 11/22/99, 5:05:47 PM, zucchi@zedzone.mmc.com.au (NotZed) wrote
> regarding Re: Fwd: [pygtk] A weird problem with raw_input and zvt:


> > Whatever you're running in the terminal doesn't know the real
> > terminal size.

> > Do something like
> >  eval `resize`

> > to check/verify/set the real terminal size.

> > >
> > >
> > >  Ok,
> > >
> > > I sent the message below to pygtk list thinking I did something wrong.
> > >
> > > Now I am sure it's a zvt bug. I am using october-gnome btw.
> > >
> > > Ok, I did not and could not reproduce exactly, what is described=20
> > > below, in gnome-terminal, BUT if you write a loong line then try to=20
> > > get back with arrow then your line will start going nuts.
> > >
> > > If this has been known then apologies. Otherwise, tell me and I'll=20
> > > submit a bug report if needed!
> > >
> > > Also, if I type raw_input('promt: ') in my app, all is well. This
> is=20
> > > really weird!
> > >
> > >
> > >
> > >
> > > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
> > >
> > > On 11/14/99, 11:09:12 PM, Hassan Aurag <aurag@CRM.UMontreal.CA> wrote=20
> > > regarding [pygtk] A weird problem with raw_input and zvt:
> > >
> > >
> > > >  Hi,
> > >
> > >
> > > > I have an app that creates a zvt term in a gnome-app and forks and
> > > > calls another python script that handles input output etc....
> > >
> > > > The way I handle input is by using raw_input(prompt)
> > >
> > > > Now if I type a line long enough to go onto the next line, it won't
> > > > and instead will overwrite the first line. This happens only in the
> > > > first line and it gets redrawn if I use the left arrow (I have
> > > > imported readline to be able to do that). For all other lines of the
> > > > same input, everything is ok.
> > >
> > > > Now, I haven't been able to reproduce this even with the zterm.py
> > > > example provided with pygnome package. I even used raw_input there
> and=
> > >
> > > > all is fine.
> > >
> > > > The only difference between zterm.py and my thinggy is that one is in
> > > > a Gtkwindow and the other is in a GtkHBox which itself is in a
> > > > GnomeApp
> > >
> > > > Any idea why this happens?
> > >
> > >
> > > > H. Aurag
> > >
> > >
> > >
> > >
> > > > To unsubscribe: echo "unsubscribe" | mail pygtk-request@daa.com.au
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe: mail gnome-devel-list-request@gnome.org with
> "unsubscribe"
> > > as the Subject.
> > >
> > >





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]