NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: That DEL key thing...
mlelstv%serpens.de@localhost (Michael van Elst) wrote:
> There is only a "erase to the left" function and that is what the
> "erase" character does.
>
> Anything else is behaviour of the specific program, which take over
> input processing (by switching to cbreak or raw mode of the tty):
> [...]
> >I come from Windows, Linux background where BS removed from left and DEL erased to the right. FreeBSD behaves similiarly - Well, it also works that way on X11 on NetBSD. Meanwhile on wscons both remove to the left
> That is completely independent of the environment. It's a function of
> the particular program you run (e.g. the shell).
>
> For a simple comparison you could issue the command 'cat' (that just
> reads input and writes what it read to output, finish with ctrl-d).
>
> The cat program has no idea about things like keyboard or line-editing,
> but gets what the terminal driver supports (what the stty command
> shows), and there is no line-editing either, just backspace/rubout.
Hm, that changes a lot. I thought it's wscons' job to process what particular keys mean.
We learn something new everyday.
> bash or tcsh (i.e. same as the editline library) will just
> treat both the same unless configured.
>
> E.g. for tcsh you can use the command:
>
> bindkey "^?" delete-char
>
> The equivalent for the editline library is an entry in ~/.editrc:
>
> bind ^? ed-delete-next-char
>
> Our /bin/sh does use editline.
Nice, now it works as I expected. It definitely deserves a mention in NetBSD Guide.
Thanks! :>
--
pl <pl%szwajn.net@localhost>
Home |
Main Index |
Thread Index |
Old Index