delete key in X

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Dec 6 15:36:20 PST 2005


On 2005-12-06 14:39, Shane Helms <jovial_man at yahoo.com> wrote:
> Hi,
>
> I have my delete key sorted in console through use of inputrc file -
> i'm using bash shell.  in X however it has a very undesirable
> behavior...  in terminals it behaves just like my backspace key -
> i.e. it deletes the char to the left of the cursor.  i like it to
> delete the character to the right of the cursor.  what should I do??
>
> the only *effective* solution that I found in list archives was to set
> Delete to behave as Ctrl+D which is definitely not the right thing to
> do...
>
> I'd appreciate a help for this newbie freebsd user.  Please reply to
> my email address as i'm not on the list.

I always run screen(1) in my xterm windows, with a TERM=vt220, which
works fine for all the programs I regularly use.

Another solution is probably to set the following X11 resource in your
~/.Xresources file:

    XTerm*deleteIsDEL: true

and 'merge' the new .Xresources file with:

    $ xrdb -merge ~/.Xresources



More information about the freebsd-questions mailing list