Kurt,

bash uses the 'readline' library. This library supports a rebinding of keys. The
library reads the file '~/.inputrc' when it starts and reads commands to rebind
keys. You can read the 'readline' man page for full details. At any rate, create
the file ~/.inputrc and in it put:

"\e[1~": beginning-of-line
"\e[3~": delete-char
"\e[4~": end-of-line

That should do the trick. Also, here's a small c program which will read raw
bytes that you type. This is what I used to find out the above. Note that it's 
up
to you to translate the hex bytes into the "appropriate" string. You can compile
it with 'make readkb' if you save the file as readkb.c. Type 'x' to quit the
program.

kurt klingbeil wrote:

> What I'm really dying to know, is why the Home, End, and Del keys
> are not config'ed, out of the box, to do the right things in bash.
> Shit, it's hard to take that doskey would out-function bash in _any_
> respects.   Of course, one could use ^a, ^e, and ??,  and/or dig out
> the keymapping docs and try to rectify that, but I must have some
> kinda mental block about it and can't believe it doesn't bug
> everyone else and at least one person enough to have fixed it.
>
> Maybe I've just been using Gatesware too much ??
> It does seem like a basic completeness issue.
>
> I've just started using debian.  It's very cool!
>
> kk
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



--
Jens B. Jorgensen
[EMAIL PROTECTED]

Attachment: readkb.c
Description: application/unknown-content-type-c_auto_file

Reply via email to