[mgt-devel] work plan

Mohammed Sameer msameer at foolab.org
Mon Feb 18 15:33:52 UTC 2008


On Sun, Feb 17, 2008 at 11:22:47PM +0200, Mohammed Sameer wrote:
> > > Another problem is that libzvt2 (mgt used zvt1.x as its terminal widget)
> > > seems dead. We can of course adapt and maintain it. It's scheduled for
> > > removal from Debian and it'd be easier for us to maintain it rather than
> > > re-adding it.
> > > 
> > > VTE is the new widget used by GT. I noticed it's a bit slower. That's why
> > > I'm not sure which direction to follow.
> > Does libVTE have all needed features we need to fully implement MGT
> > functionality? For example is there some signal handler when terminal content
> > is changing ? We could use this for coloring tabs. 
> 
> I'm still trying to find out how was it implemented in mgt!!


OK. mgt has a glib timeout that will check all the terminal and color the tabs accordingly.
I tried to understand how it does it actually but I failed.

libzvt2 has a new_output signal. It'll go into an infinite loop and crash if you use that signal
but I managed to fix it. We can simply use that signal (I didn't find a similar one in vte).

Now how to detect the "no changes" state ? I'd say we examine the terminals every x seconds
(x = 1 ?) and see if a terminal has not received updates within the last second and if so, mark
it as changed.

I think this is somehow what m-g-t does.
Open m-g-t, open 2 tabs
type on one: sleep 5; ls; sleep 5; ls; sleep 5
Switch to another tab and notice how the colors are being changed.

What do you thing ?

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/multignometerm-devel/attachments/20080218/85534e93/attachment.pgp 


More information about the multignometerm-devel mailing list