From owner-freebsd-questions@freebsd.org Tue Dec 22 18:28:10 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D112AA4F2A5 for ; Tue, 22 Dec 2015 18:28:10 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32E2C1381 for ; Tue, 22 Dec 2015 18:28:09 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.0.70]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0M3JRY-1aSyaF3wnI-00r1lK for ; Tue, 22 Dec 2015 19:28:08 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aBRfL-0003c7-AY for freebsd-questions@freebsd.org; Tue, 22 Dec 2015 19:28:07 +0100 Date: Tue, 22 Dec 2015 19:28:07 +0100 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: Place servername in TAB iTerm Message-ID: <20151222182807.GA44153@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <56794339.3080106@gmail.com> <20151222123933.GA3974@c720-r285885-amd64> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20151222123933.GA3974@c720-r285885-amd64> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:iZfNgTDIaXIQGjYTxVdBVrfqmz0ztb1Y3L8Enkol+5pIvLdyD/W 4Y8uE0hTMh0YD1SH+5BNXOYW5G0ci6dzJCW4TwAjBncQ0RryvMi1nSROXJ5dluIgqqH4+YE uO4TmOoADHzL2zkqTAuujbNCEm8MB6kfkdq6aQMgAkK33RPbKq/B+vtNrSsd3sEyKppqW66 RXqNaAn7pHqVrFDRsxvoQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:BA5w7NF2DdA=:nyb8aXl8jYmcpjtTivuQSS qdGYkLGCkG6okwaLSAoJ67KX7i82PGRixgfJyxJVvY3/CcaJHzgSzr4CplHGLclqw/l3P/tAW JYXiUwj5aR6IwEP8F0fRouOHA2M2qbx0NC/ZO4XkZeJHWEnsuXwwo0ua0VboNh0AYXpB8TwvB kDw2bik2tXXi7TCrHyihuqrWCCOAQrwYcihSWCgGmcj0Gq1ecNodyvLlSlTU2gQPBxkpcmGgj QV2D0JhYJ6QsMFcjYSc654OmJE8/sT3fSDLtiaKLXsdfeApDd+IbqYwW7fthkFbDZsaBDbJVH mHK6ifa7vGPbHDypp04F2zOTs5QvNvTAD8kQ3KwbqU4qCW8UBbj56wwbF0CdMaytvEda07Mkl a4kXinDrtJnAA38N0mwKgx0WOuHZRljC6ivdtKQV6s24y6qIiNn4qKcdl0T4YetoOvHEq2hYo 8tLOlACy8OrAI8GmVIQ8MRbm+L87I28dmb8ibRfWn/9sZTqzXYEFjJK0sz/73GUy7HPOVElHN 6SXY8BCw4SdB0L6CW8ka6sozrmzodPTO6JWNFlA5yUhnYQR6puAtRRQCoUGdZyhzQm38P57pl 5XSWxzF98TSneCL0JbNOP6MMb64tVZyFR4rH7ptTUX4XI4cDR1tW9l4eaQ4OGcdRAe48sJ7TI soVp7N0wK8WXH7hMT2J+lQh8Ba5lv9Du7QdP3WnkkavCHn/G8d5Ov2pv2U4HyoUazGD8= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 18:28:10 -0000 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