From owner-freebsd-questions@FreeBSD.ORG Mon Jan 14 08:53:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BF9516A420 for ; Mon, 14 Jan 2008 08:53:22 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from wmail.teledomenet.gr (wmail.teledomenet.gr [213.142.128.16]) by mx1.freebsd.org (Postfix) with ESMTP id 01AC113C45A for ; Mon, 14 Jan 2008 08:53:21 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by wmail.teledomenet.gr (Postfix, from userid 1002) id CBF881C8093; Mon, 14 Jan 2008 10:53:20 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on wmail.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7-deb Received: from iris (unknown [192.168.1.71]) by wmail.teledomenet.gr (Postfix) with ESMTP id A9C0F1C8093; Mon, 14 Jan 2008 10:53:16 +0200 (EET) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Mon, 14 Jan 2008 10:53:04 +0200 User-Agent: KMail/1.9.7 References: <1200296141.478b10cd53c0f@www.inbox.lv> In-Reply-To: <1200296141.478b10cd53c0f@www.inbox.lv> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801141053.05543.nvass@teledomenet.gr> Cc: Matiss Subject: Re: Which environment variable? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 08:53:22 -0000 On Monday 14 January 2008 09:35:41 Matiss wrote: > Is there such environment variable, which changes window title for > putty? No there is no such variable, that I am aware of. You just have to send some control characters to the terminal to change its title. How to send these characters really depends on your shell. > How do I change that title to let's say server name for my shell? You could use something like this in your ~/.bash_profile if you use bash. echo -en "\033]0;`hostname`\007" The above sends: 1) ASCII \033 2) ] 3) 0 4) ; 5) the_hostname 6) ASCII \007 The idea is that you should initiliaze the xterm's title at login time. Check the page below for your favorite shell. There are even two workaround in Perl and C in case your shell has no easy way to send the control characters. http://tldp.org/HOWTO/text/Xterm-Title HTH, Nikos