On Tue, Nov 23, 2010 at 12:24:48PM -0700, James Bowlin <[email protected]> 
wrote:
> The first field a unique window-id, followed by placement, size,
> and desktop number.  After that is: name, class, title, and role.
> I used your previous hint and am using my shell (currently Zsh)
> to put the process id and CWD in the title.  As it turns out, I
> only need the PID but the CWD is handy for the user to see.

urxvt also has an OSC sequence to set random x string properties, btw.

I use that to set a X_CWD property on each shell prompt, which works
nicely for subshells, and even for remote shells.

Only part of the puzzle, but nevertheless...

> The only way I have to get the window-id is kludgey and fragile.
> I get a list of all window-ids before the window in question is
> launched then I wait around and poll the entire window list
> waiting for something new to show up with the correct name field.

You could again do something in your .zshrc or so - the windowid is
available in the environment.

Or write a perl extension to do that, which might or might not make it
possible to write "proper" session properties as well.

As for restoring, you could start by modifying the existing tabbed
extension (as limited as it is) and spawn a number of subterminals by
using e.g. env variable,s x-resources or any othe rmeans of communication.

It's certainly not trivial, unless you hacked around with/in perl
extensions before, but certainly doable.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to