console and bash - how to get Delete key working properly ?

J B jb.1234abcd at gmail.com
Fri Dec 3 13:41:23 UTC 2010


Hi,
I searched BSD docs and Google for answers, but none of them works.

By "working properly" I mean for Del key to delete char under the cursor
and not the previous one.

It works in gnome xterm, but not in console.

It works in sh with config hint from FreeBSD handbook:
  bind ^? ed-delete-next-char # for console
  bind ^[[3~ ed-delete-next-char # for xterm
but not in bash (with or w/o the hint).

Having readline lib installed does not make any difference as well.

$ uname -r
8.1-RELEASE
$ env |grep -i shell
SHELL=/usr/local/bin/bash
$ ls /var/db/pkg/bash-4.1.7/
No readline lib installed.

JB


More information about the freebsd-questions mailing list