Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2010 14:41:21 +0100
From:      J B <jb.1234abcd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   console and bash - how to get Delete key working properly ?
Message-ID:  <AANLkTi=TQu4gMy0S8DRLQaYYYYYiyOUvTViJukZSJvJS@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=TQu4gMy0S8DRLQaYYYYYiyOUvTViJukZSJvJS>