[H-GEN] Making xterm(s) behave the way I would like

Michael Anthon mca at tams.com.au
Wed May 3 22:44:30 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

I'm having a few problems getting xterm and rxvt to behave the way I would
like them to.  The real problem is that I can't get the Alt-<key> sequence
in xterm to send the sequence <esc><code>.  It always seems to send just
<code>.  I wrote a simple little perl program to see what it was actually
doing [1] and as an example, if I run this under xterm and press Alt-O then
enter, I get <111><10>.   If I run it under rxvt, I get <27><111><10>, which
is the sequence that I would like to see in xterm.

I have done a bit of reading and discovered the EightBit* resources, but
these seem to make no difference, but perhaps I am not using them correctly
	XTerm*VT100.EightBitControl:    false
	XTerm*VT100.EightBitInput:      false

I have checked that my ~/.Xdefaults is being loaded correctly by altering
the visualBell resource in there and it does pick up the changes each time I
start the terms (I am running this from a windows X Server using rsh to
start the term, but I get the same problem on the local X server on the
machine and on a Sun IPC running XFree that I use as an X Terminal.  I am
also seeing the same problem on my home machine, which is a Debian/Woody
system.

On the rxvt side there is a problem with it's handling of the backspace and
delete keys.  This is what I get for the Alt-O, backspace and delete
keys....
	<27><111><10>  (correct)
	<27><91><51><126><10>
	<27><91><51><126><10>

The rxvt man pages led me to adding this entry to ~/.Xdefaults
	Rxvt*backspacekey:\b
But that does not seem to work either and I am getting a little frustrated
8^(

Can anyone point me in the right direction here?  Perhaps it is just the
syntax of my entries in .Xdefaults?

Regards
Michael Anthon

PriceWaterhouseCoopers - TAMS

[1]
#!/usr/bin/perl
while (<>) { 
        for ($i=0;$i<length($_);$i++) {
                printf("<%d>",ord(substr($_,$i)));
        } 
        print "\n";
}





--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list