From owner-freebsd-questions Thu Feb 5 18:17:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA23782 for questions-outgoing; Thu, 5 Feb 1998 18:17:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mole.slip.net (mole.slip.net [207.171.193.16]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA23771; Thu, 5 Feb 1998 18:17:11 -0800 (PST) (envelope-from bsampley@slip.net) Received: from sf-pm17-11-75.dialup.slip.net [207.171.212.75] by mole.slip.net with smtp (Exim 1.73 #2) id 0y0dL6-0007Ej-00; Thu, 5 Feb 1998 18:16:25 -0800 Date: Thu, 5 Feb 1998 18:15:01 -0800 (PST) From: Burton Sampley X-Sender: bsampley@bsampley.my.domain Reply-To: Burton Sampley To: Greg Lehey cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG Subject: Re: Dynamic title in XTerm bound to F8 (fwd) In-Reply-To: <19980206113524.54855@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" > > I don't understand why this should interest the ISPs, so I'm replying > only to -questions. > Greg, Thanks for the help. I've been 'banging my head against a brick wall' trying to figure this out. I finally did figure out a solution shortly after submitting my request for help. The reason I think ISP's might be interested is if they manage more than one box using XFree86 and xterm. It can be quite convent to just hit 1 single key to update the xterm title to the hostname of the box they are currently working on, especially if they need to minimize more than one xterm (ie, if you're changing DNS entries on more than one DNS server). The solution is: ~/.Xdefaults: xterm*VT100.translations: #override\ NoneF8: string("echo \\"^V^[]0;`hostname`^V^G\\"") \ string(0x0d) \n\ In the above string, "^V^[" is produced with the following key sequence in vi "ctrl-v ctrl-v ctrl-v esc" and "^G" is produced with "ctrl-v ctrl-g". The \\ correctly escapes the inside set of double quotes. NOTE: I've only tried this with csh and derivatives (ie, tcsh) on both ends. NOTE: For whoever's interested, in the command above, 0 specifies the regular title and the minimized title; 2 will change only the regular title and 1 will change only the minimized title. I verified this works by ssh'ing into several remote accounts and pressing F8. It did what I wanted it to do. -burton-