Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 13:39:33 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Johan Hendriks <joh.hendriks@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Place servername in TAB iTerm
Message-ID:  <20151222123933.GA3974@c720-r285885-amd64>
In-Reply-To: <56794339.3080106@gmail.com>
References:  <56794339.3080106@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, December 22, 2015 a las 01:34:01PM +0100, Johan Hendriks escribió:

> Hello all.
> 
> I use iTerm on my mac.
> When I connect to a Linux (Ubuntu) machine, in the TAB the name off the
> server appears.
> If I connect to a FreeBSD machine it just shows me ssh.
> How can I change the name off the TAB in iTerm (and other terminal
> programs) to show the servername.
> I use the standard csh. BTW if i use portmaster then it renames the tab
> also to what portmaster is doing.
> 
> I do not know what I need to change to get the same behauviour as Linux
> 
> Thank you for your time.

I can only speak for xterm and urxvt terminals (and maybe for iTerm on
Mac you should consult its documentation or mac user forums); I have a
script 'ti.sh' which says:


#!/bin/sh
printf "\033]0;$1\007"

and when I run this as '~/ti.sh blabla' it puts 'blabla' in the titel
bar of the terminal.

HIH

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/  ☎ +49-176-38902045
«(über die DDR)... Und allein dieser Mangel (an Sozialismus) und nichts anderes führte zum Tod.
Und wer da nicht trauert, hat kein Herz, und wer da nicht neu anpackt, hat auch keins verdient.»
«(sobre la RDA)... Y solo esta escasez (de socialismo) y no otra cosa, le llevó a la muerte.
Y quien no está de luto, no tiene corazón, y quien no se lanza a luchar de nuevo, no se merece
corazón.», junge Welt del 3 de octubre 2015, p. 11



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151222123933.GA3974>