Date: Fri, 8 Oct 2004 20:50:04 +0100 From: dom@happygiraffe.net (Dominic Mitchell) To: Alexey Dokuchaev <danfe@nsu.ru> Cc: freebsd-current@freebsd.org Subject: Re: csh is root's shell? Message-ID: <20041008195004.GA22979@ppe.happygiraffe.net> In-Reply-To: <20041007171009.GA36712@regency.nsu.ru> References: <136a340a041007045538093bfd@mail.gmail.com> <200410071644.i97Giq5a058914@gw.catspoiler.org> <20041007171009.GA36712@regency.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 08, 2004 at 12:10:09AM +0700, Alexey Dokuchaev wrote: > I use pretty much the same code for setting xterm's titlebar. However, > there is one known problem with it: when you leave (^D) your shell, > being ssh'ed to another machine, titlebar still has that remote host > name. If there was a way to retrieve current title string, sigh. > Unless, of course, I'm missing something here. You can get the title back from an xterm, but it's not as simple as putting it there... And it only works when you're directly inside the xterm, not ssh'd into another machine (assuming you sometimes ssh several levels deep). Anyway, I've had this snippet floating around my bin directory for a while: xprop -id $WINDOWID | sed -n '/^WM_NAME(STRING)/{s/.*= "//;s/"$//;p;}' I'm not in a position to test it right now, but it looks like it should work. :-) -Dom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041008195004.GA22979>