Change behaviour of Delete key [1]
Change behaviour of Delete key
Thursday, July 24, 2003 8:03 PM - Gregor Heine
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.
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.
Re: Change behaviour of Delete key
Friday, July 25, 2003 5:27 PM - zookeyan
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.
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.
Previous views: 115