Page 1 of 1

[SOLVED] Backspace delete in konsole

PostPosted: Sep 7th, '13, 13:07
by tarazed
Is it possible to assign Control-H to the backspace key in konsole? Gnome terminal has a compatibility option which allows it and it works fine in emacs as well. It does not appear to be possible to modify this key through general keyboard settings. In the past I have had to use .Xdefaults to change the keymappings and would do this for KDE if there is no other way.

Re: Backspace delete in konsole

PostPosted: Sep 7th, '13, 13:16
by tarazed
I note that ihowarth had found a general solution to this.
bindkey "^H" delete-char
bindkey "^?" backward-delete-char
into .tcshrc


Worth trying.

Re: Backspace delete in konsole

PostPosted: Sep 7th, '13, 14:49
by tarazed
Good. The login shell fix with bindkey works both for GNOME and KDE. However, if gnome-terminal has already been reconfigured via compatibility options then each profile needs to be returned to Default settings under the compatibility tab.

Re: [SOLVED] Backspace delete in konsole

PostPosted: Sep 7th, '13, 16:41
by doktor5000
Under manage profiles -> keyboard you can also change that, no?

Re: [SOLVED] Backspace delete in konsole

PostPosted: Sep 7th, '13, 19:28
by tarazed
I had looked at that option and decided that I did not know enough to try it. However I had a go just now and completely broke it. It may be configurable but I reckon I need to go on a course just to do that one thing. I tried removing the definition for Backspace and adding what I thought might be Control-H:
Code: Select all
\x07
. Wasn't sure how to do the test and went ahead and tried using it, without any apparent result. Went back in and tried to put things back the way they were and made things worse. My try was \xf7 which I think was the original code but that only produced the division sign on testing. Have no idea how to restore defaults. Would creating a new profile pick up the defaults?

Re: [SOLVED] Backspace delete in konsole

PostPosted: Sep 7th, '13, 20:28
by tarazed
Panic over. I selected the Linux console for each profile in keyboard configuration and checked various keyboard symbols to make sure the layout had not changed.

I also tested the output of the Backspace key and found \x7f, not \xf7. Bad memory heh? Went back to the default XFree 4 keyboard and corrected the Backspace entry and it worked as expected, as a backspace delete.