From owner-freebsd-questions Thu Feb 5 15:46:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25061 for questions-outgoing; Thu, 5 Feb 1998 15:46:29 -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 PAA24849; Thu, 5 Feb 1998 15:44:33 -0800 (PST) (envelope-from bsampley@slip.net) Received: from sf-pm17-32-96.dialup.slip.net [207.171.212.96] by mole.slip.net with smtp (Exim 1.73 #2) id 0y0axz-0007jn-00; Thu, 5 Feb 1998 15:44:24 -0800 Date: Thu, 5 Feb 1998 15:42:22 -0800 (PST) From: Burton Sampley X-Sender: bsampley@bsampley.my.domain To: questions@FreeBSD.ORG, isp@FreeBSD.ORG Subject: Dynamic title in XTerm bound to F8 (fwd) 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" Greetings, First, I apologize for cross posting this message to both questions and isp mailing lists. As you can see from the included header below, this message has already been posted to XFree86@XFree86.org. I have not received a response (other than their automatic reply) yet. I thought maybe a freebsd user has experienced this problem and has a solution I could use. If so, thanks. If not, then please point me in the direction of documentation that might address this problem. BTW, I have been working on a solution here at home where I'm using FreeBSD 2.2.5-stable and XFree86 3.3.1 with similar success. Thanks in advance, -burton- ---------- Forwarded message ---------- Date: Tue, 3 Feb 1998 10:12:50 -0800 (PST) From: Burton Sampley To: XFree86@XFree86.org Subject: Dynamic title in XTerm bound to F8 Greetings, I have been trying unsuccessfully to bind the appropriate sequence of escape characters to dynamically change the title of an xterm window to F8. Through the course of my work day I access numerous remote machines using xterm 'through' ssh. I'm attempting to setup F8 to change the title 'on-the-fly' with a single key sequence instead of typing out: echo "^[]0;`hostname`^G" at the command line (BTW, I substituted '^[' for ESC and '^G' for ctrl-G in the above command, on the command line I use the correct control characters). Here's the problem. I can't seem to get the quoting correct for the xterm*VT100.translations entry for the command to work. As you can see in the above line I need double quotes surrounding the string sent to echo, I can't figure out how to get string() to accept more than 1 set of double quotes. Here's what I've tried: xterm*VT100.translations: #override\ F8: string("echo '^[]0;`hostname`^G'") string(0x0d) At work I used Solaris 5.x on a sparcstation 5 using X11R6.3. I use csh and most of the remote boxes also use csh. When I press F8, I get "unmatched ' " and the keyboard bell chimes (so I guess it's interpreting ^G as the bell???). Is there an easier way to accomplish what I want? BTW, I can't modify .cshrc on the remote boxes. I have tried using string() to send the hex values for the escape key, but that only seemed to echo the correct sequence to the display and would only chime the bell. Thanks in advance, -burton- --------------- Burton Sampley bsampley@best.com or bsampley@haywire.csuhayward.edu or bsampley@slip.net PGP key available at http://www.best.com/~bsampley/pgp.html