Title bar of X apps, no host name?

David Sastre d.sastre.medina@gmail.com
Sat Nov 5 09:58:00 GMT 2011


On Thu, Nov 03, 2011 at 09:27:16PM +0200, Timothy Madden wrote:
> On 24.10.2010 04:59, Jerry Cloe wrote:
> >When I start individual windows between two linux boxes I always get the
> >host name in the title bar of the window.
> >
> >For example from my desktop linux box:
> >
> >ssh -X jerry@prodserver
> >then
> >gedit&
> >
> >The title bar of the resulting gedit window will be along the lines of:
> >"gedit (on prodserver.host.com)"
> >
> >But, when I do this from my windows/cygwin desktop, the title bar is simply
> >"gedit" without the host name.
> >
> >On the linux side, I've never done anything to set this up or make it work,
> >it just always worked, so I'm not even sure where to begin looking.
> >
> >Any ideas?
> 
> Does anyone know how to change the window title to include the
> hostname please ?
> 
> Connecting to 4 machines (with *ssh -Y*) and starting the *gvim* on
> all of them can be really frustrating when you have no indication
> what machine each instance is running on.

One different approach is to use 'screen' and have a hardstatus line:

hardstatus alwayslastline "%{wk}%-w%{Gk}[%n %t]%{wk}%+w%=%{Ck}%d %M %Y %c:%s"

That way, you always know which screen belongs to which host.
However, I find opening several vim in several hosts wasteful. It's
quite better to use netrw¹ to edit remote files within a single vim
instance and list your buffers to identify the files/hosts.

HTH.

¹ http://www.vim.org/scripts/script.php?script_id=1075

-- 
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20111105/b7ca1ad5/attachment.sig>


More information about the Cygwin-xfree mailing list