From owner-freebsd-questions@FreeBSD.ORG Sat Feb 6 14:58:00 2010 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 72C2A106566C for ; Sat, 6 Feb 2010 14:58:00 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 331F88FC1C for ; Sat, 6 Feb 2010 14:57:59 +0000 (UTC) Received: from mobileKamikaze.norad (unknown [88.130.209.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id ABE8E8A1588; Sat, 6 Feb 2010 15:57:58 +0100 (CET) Message-ID: <4B6D8377.1090005@bsdforen.de> Date: Sat, 06 Feb 2010 15:57:59 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.23 (X11/20091126) MIME-Version: 1.0 To: Matthew Seaman References: <4B6D62B3.4070702@bsdforen.de> <20100206125554.GA2173@current.Sisis.de> <4B6D74EF.2090106@bsdforen.de> <4B6D80F3.7050707@black-earth.co.uk> In-Reply-To: <4B6D80F3.7050707@black-earth.co.uk> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Matthias Apitz , freebsd-questions@freebsd.org Subject: Re: backup terminal title 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: Sat, 06 Feb 2010 14:58:00 -0000 Matthew Seaman wrote: > On 06/02/2010 13:55, Dominic Fandrey wrote: > >> Nice, but I need something that works with base system >> components. Like an escape sequence that causes the terminal >> to reset its title. > > Something like this for tcsh: > > set prompt = '%{\033]0;%n@%m:%/\007%}%B%m%b:%c03:%# ' > > Sets the window title to 'user@hostname:/current/directory'. Porting > this escape sequence to other shells left as an exercise for the student. Already experimented with that, but it makes tcsh believe the prompt is longer than it really is. So it will blow up when you move your cursor around in long commands. Also this doesn't really relate to the question, does it? -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?