Date: Tue, 22 Dec 2015 19:28:07 +0100 From: Bertram Scharpf <lists@bertram-scharpf.de> To: freebsd-questions@freebsd.org Subject: Re: Place servername in TAB iTerm Message-ID: <20151222182807.GA44153@becker.bs.l> In-Reply-To: <20151222123933.GA3974@c720-r285885-amd64> References: <56794339.3080106@gmail.com> <20151222123933.GA3974@c720-r285885-amd64>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Tuesday, 22. Dec 2015, 13:39:33 +0100, Matthias Apitz wrote: > El d=C3=ADa Tuesday, December 22, 2015 a las 01:34:01PM +0100, Johan Hend= riks escribi=C3=B3: > > How can I change the name off the TAB in iTerm (and other terminal > > programs) to show the servername. >=20 > I can only speak for xterm and urxvt terminals [...] >=20 > printf "\033]0;$1\007" By the way, if you run that inside a terminal multiplexer (tmux here) it will modify the pane title inside the terminal. At least tmux will not forward it to the terminal emulator. Yet, it is still possible to modify the window title. Find out the tty number of the multiplexer client and send the escape sequence there. $ ps -l | grep tmux $ printf "\033]0;$1\007" >/dev/pts/2 Replace "2" by the value of the first command's "tt" field. Bertram --=20 Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151222182807.GA44153>