Xmanager Forum

Change behaviour of Delete key

Last post: Friday, July 25, 2003 5:27 PM by zookeyan, 1 reply

 
Thursday, July 24, 2003 8:03 PM - Gregor Heine

Change behaviour of Delete key

 
Hi,
I'm using Xmanager on Solaris 9. When I open an xterm window, the Delete key behaves like the Backspace key, as it deletes the character left of the cursor. How do I change the behaviour of the Delete key so that it deletes the character under the cursor instead? I'm using the vanilla UK_102 keyboard mapping.
Friday, July 25, 2003 5:27 PM - zookeyan

Re: Change behaviour of Delete key

 
Hi,

You can get what you want by changing SHELLs.
I'm using 'bash' for my SHELL.
I'v edit $HOME/.inputrc and $HOME/.Xdefaults like this:

$vi .inputrc

set editing-mode emacs
"^?":delete-char

$vi .Xdefaults (if not exist, you should make it)

XTerm*VT100*translations: #override \
BackSpace: string(0x7F)\n\
Delete: string("^?")

Or you could use 'tcsh' for the 'Delete' key to delete characters under the cursor.
Then just do like this:

$bindkey "^?" delete-char

Unfortunately I couldn't find it when using the SHELL, csh or ksh.
There might be good solutions about csh, ksh.
Just try to find them.

Bye.