Re: [Fwd: VTE question]



On Thu, 2006-09-28 at 14:24 +0200, Major Csaba wrote:
On Mon, 2006-09-25 at 13:31 -0400, Behdad Esfahbod wrote:
Without showing us your code how can one help?

  Yes, you're right. I attach the patch for the widget, but I'm not a C
expert so don't slag off the code, please :)


Does anybody know how to save and restore the state of the VTE terminal
in the proper way? (If there is a proper way)

There is no proper way to do this.  And save/resotre'ing all the state
correctly is not an easy job.  Can't you use 'screen' inside vte?  That
sure allows a lot of stuff to be done that is hard to do in vte.

  I'm using the "screen" structure in the private part of the VTE to get
the state if you mean by that.

First, you really should store some (if not all) the stuff in the
VtePrivate struct.  Other than that, the immediate problem I can spot is
that you are only storing the /current/ screen.  There are two screens,
a normal one, and an alternate one.  When you run vim for example, it
switches to the alternate screen, and switch back to normal when you
exit.  I cannot comment more than that as I don't know what problems you
are facing.

behdad

MCS

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"




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