Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 13:57:59 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        William Palfreman <william@palfreman.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Delete Key
Message-ID:  <Pine.GSO.4.44.0206061356140.29324-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <20020606134647.K179-100000@kmart.lan.palfreman.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Jun 2002, William Palfreman wrote:

> On Thu, 6 Jun 2002, Andrew J Caines wrote:
>
> > Sanjay,
> >
> > > I want to make the DEL key work while working with the bash shell itself.
> >
> > # stty erase ^V<del>
> >
> > Put it in your .bash_profile if this is really what you want every time
> > you log in.
>
> Doesn't work.
>
> $ stty erase [press ^V, press del, enter]
>
> del continues to behave as a destructive backspace
>
> > Out of curiosity, why do you want delete to behave like backspace?
>
> He doesn't.  He wants his Del key to delete the character on the cursor
> (^D) and the backspace key to delete to the left of the cursor (^H).
> Currently they both are destructive backspaces.  I can't understand the
> FreeBSD schizophrenia about del.  It is a *PC* operating system. Ever
> since I stopped using Wordstar in 1986 backspace has deleted backwards
> and del has deleted forwards on a PC.  Why is this so hard?  XFree86
> manages it xmodmap. Its not even usful having two backspaces (backspace
> and del), as they are both doing exactly the same thing at present.
>
> There should be a simply way to map ^D to del.  Usually any request to
> do this get fobbed off with "RTFM, man stty"  Done that, googled for it,
> neither says simply how to make del behave like ^D on a console.

There are lots of bits that might get in the way. If you're using tcsh
then you should look at the builting "bindkey", which maps control key
(and other sequences) to editor behaviour. Presumably bash has something
similar.


-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
and Nostradamus never dreamed of the Church of the Accellerated Worm


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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