Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 1998 15:42:22 -0800 (PST)
From:      Burton Sampley <bsampley@slip.net>
To:        questions@FreeBSD.ORG, isp@FreeBSD.ORG
Subject:   Dynamic title in XTerm bound to F8 (fwd)
Message-ID:  <Pine.BSF.3.96.980205153531.366B-100000@bsampley.my.domain>

next in thread | raw e-mail | index | archive | help
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 <bsampley@slip.net>
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\
	<Key>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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980205153531.366B-100000>