[2761] in RedHat Linux List
Re: Keyboard
daemon@ATHENA.MIT.EDU (Wierdl Mate)
Tue Nov 5 11:19:12 1996
To: "Khalid S. Al-Khater" <kskhater@qatar.net.qa>
cc: "redhat Mailing List" <redhat-list@redhat.com>
In-reply-to: Your message of "Tue, 05 Nov 1996 17:28:40 +0300."
<199611052031.RAA22889@doha.net>
Date: Tue, 05 Nov 1996 11:13:10 -0600
From: Wierdl Mate <matyi@wierdlmpc.msci.memphis.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> Does any one know how to get the { Delete key } to work properly from =
> the command line in bash?
What does properly mean?
Anyways, the following does the this:
Backspace is left alone to delete the previous character
Delete deletes the current character.
The script was posted here, I think, and put it in ~/.inputrc
# ~/.inputrc
# Costumize the different keys for Console or Xterm.
#
# We're on an xterm
$if term=xterm
DEL: delete-char
$else
# we're on a console
# Having Umlaute
set metaflag on
set convert-meta off
set output-meta on
# Do what it says to
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
DEL: backward-delete-char
$endif
# end ~/.inputrc
A remark: if you are using bash (in Emacs mode), the lines
"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line
are not needed; they are the default.
Modify as you want.
Mate
M\'at\'e Wierdl
Department of Mathematical Sciences
University of Memphis,
E-mail: matyi@moni.msci.memphis.edu
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null