From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 05:05:01 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C056D37B401 for ; Mon, 2 Jun 2003 05:05:01 -0700 (PDT) Received: from praetor.linc-it.com (hardtime.linuxman.net [66.147.26.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3479043F3F for ; Mon, 2 Jun 2003 05:05:01 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-156-172-64.jan.bellsouth.net [66.156.172.64]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by praetor.linc-it.com (Postfix) with ESMTP id 89B8C15482; Mon, 2 Jun 2003 07:05:00 -0500 (CDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id C869A20F12; Mon, 2 Jun 2003 07:04:58 -0500 (CDT) Date: Mon, 2 Jun 2003 07:04:58 -0500 From: "Matthew D. Fuller" To: Sergey Akifyev Message-ID: <20030602120458.GW61246@over-yonder.net> References: <1054549031.81939.7.camel@asa.gascom.net.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1054549031.81939.7.camel@asa.gascom.net.ru> User-Agent: Mutt/1.4i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: questions@freebsd.org Subject: Re: What ASCII sequence is used to set xterm title? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 12:05:02 -0000 On Mon, Jun 02, 2003 at 02:17:12PM +0400 I heard the voice of Sergey Akifyev, and lo! it spake thus: > Hello! > > I just want to make shell prompt with changing gnome-terminal window > title (to show host on which I'm sitting now). Does someone know how? I use a script to set it when I login to a box with some silly config like a prompt that sets it: --- (ttyp1):{507}% cat ~/bin/xttitle #!/bin/sh printf "\033]0;${*}\007" --- You should be able to work that sequence into wherever you want... -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet"