Re: Problem with DELETE on xterm in 8.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 07, 2002 at 01:47:50PM -0400, William W. Austin wrote:
> OK, I'm evil: I prefer xterm for everyday use ;->
> 
> Anyway after upgrading to 8.0, I discovered that (on my main box at home,
> anyway) running EVERYTHING in default mode (metacity, I suppose ... Gnome
> desktop, blucurve theme, etc.), the delete key could not me made to send a
> delete char (0xff).
> 
> The "Main Options > Delete is DEL" button is checkable but does not produce the
> expected result.  Sadly I also want to have a working backspace key, so I also
> have "Main Options > Backarrow Key (BS/DEL)" checked as well. (It works as
> expected.)
> 
> I tried experimenting with the possible combinations here and nothing could get
> the delete key to send the delete char -- it persists in sending the sequence,
> "<ESC>[3~" no matter what I do.
> 
> Interestingly if I switch to KDE or every other WM I have tried so far, this
> problem does NOT occur and I can have working Backspace and Delete keys.
> 
> I have looked through many of the docs so far (and RTFM'ed, of course) and have
> not found it yet.  Copying over a binary of xterm from a 7.3 machine does not
> change the situation (tested that), and I am wondering if this is documented
> somewhere as an inalterable "enhancement"  (Yeah, it was there before, but a
> judicious application of x-resources in my .Xdefaults file cured the problem. 
> But this apparently no longer works).
> 
> Even compiling and installing xkeycaps doesn't help ... sigh.
> 
> Anyone have a solution on this one?
> 
> Thanks in advance
> 
> Bill Austin			waustin@att.com


The mis-behaviour of BS and DEL is one of my pet peeves with the
default setup of RH Linux.  Each time I install I go thru an 
elaborate editing session to "fix" it.

Here are the notes I wrote to myself:


By default Linux uses the Backspace and Delete keys in a way that seems
unnatural and wrong to me.  I strongly prefer the UNIX SysV method where
Backspace emits <^H> and Delete emits <^?>, and the stty functions,
'erase' and 'quit' are associated with them.  That allows the Delete
key to stop a running process, instead of <^C>.  - easier to type.
The Backspace key works as expected everywhere - on the command line,
in various programs that require text entry, and in vi.

I also want to use vi-style editing on the command line.

To fix the Backspace key and Delete key:

************
/etc/rc.d/rc.local - append these lines to change BS & DEL

#  Fix Backspace and Delete keys
echo "rc.local: Restoring SysV functions to Backspace and Delete keys"
echo "keycode 14=BackSpace" | loadkeys
echo "keycode 111=Delete" | loadkeys



************
/etc/bashrc - add this line
    Do NOT cut and paste this line;  write it to a /tmp/file,
    then read that file in to the bashrc file


    stty  intr ^?  quit ^C  erase ^H  kill ^U



************
/usr/X11R6/lib/X11/app-defaults/XTerm - add these lines:
    Do NOT cut and paste these lines;  write them to a /tmp/file,
    then read that file in to the XTerm file

!   dad's preferences
!   BackSpace key emits ^H;  Delete key emits ^?
!   ^H is erase;  ^? is intr;  ^C is quit (with core);  ^U is kill
!   Must also add stty line to /etc/bashrc

xterm*ttyModes          :	erase   intr   quit   kill 

xterm*VT100.Translations:	#override \n\
	<KeyPress>Prior	:	scroll-back(18,line) \n\
	<KeyPress>Next	:	scroll-forw(18,line) \n\
	<Key>BackSpace	:	string() \n\
	<Key>Delete	:	string(0x7f)


************
/etc/inputrc - set vi mode

# Set vi editing mode - dad, 5/30/00
set editing-mode vi


-- 
	David A. De Graaf    DATIX, Inc.    Hendersonville, NC
	dad@datix.2y.net    (828) 696-8646;  fax (828) 694-1037



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux