Re: cvs commit: src/contrib/libreadline FREEBSD-upgrade rlstdc.h CHANGELOG CHANGES MANIFEST Makefile.in README aclocal.m4 bind.c callback.c complete.c configure configure.in display.c funmap.c histexpand.c histfile.c histlib.h history.c history.h input.c ...

[ Available lists | Index of cvs-all | Month of Aug 1999 | Week of 18 Aug 1999 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Brian F. Feldman <green@FreeBSD.org>
Date
18 Aug 1999 15:21:55
Subject
Re: cvs commit: src/contrib/libreadline FREEBSD-upgrade rlstdc.h CHANGELOG CHANGES MANIFEST Makefile.in README aclocal.m4 bind.c callback.c complete.c configure configure.in display.c funmap.c histexpand.c histfile.c histlib.h history.c history.h input.c ...
Message-ID
Pine.BSF.4.10.9908181512080.59014-100000@freefall.freebsd.org

In reply to

[ Hide this part ]
On Wed, 18 Aug 1999, David O'Brien wrote:

> > > > Esc-k brings up the previous command ('ls')
> > > > 'A' moves the cursor to the end of the line.
> > > > backspace deletes the 's' of 'ls'.
> > >
> > > Give `toor' a password and login on the console.
> >
> > Hummm... I get a BEL when I hit backspace. What is supposed to happen?
>
> libreadline would have backspaced over the 's'.

FWIW, the correct behavior seems to be to beep and complain rather than
accept the ^H. This is from my memory of how the vi standard dictates
the behavior, how nvi works, and how it coincides with libedit. The
proper behavior, IIRC, is such that backspace will only delete any text
in vi that has been typed during the same command. I.e.:

ifo<esc>Ao<bs> would give you "fo" and
ifoo<esc>A<bs> would give you "foo<beep>"

I'd prefer to keep in line with the vi standard for behavior rather than
how libreadline (and, btw, pdksh) make things more convenient/less
correct.

--
Brian Fundakowski Feldman / "Any sufficiently advanced bug is \
green@FreeBSD.org | indistinguishable from a feature." |
FreeBSD: The Power to Serve! \ -- Rich Kulawiec /



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



Elapsed time: 0.124 seconds