How to unbind a shortcut in a terminal
up vote
1
down vote
favorite
Ubuntu 18.04
I'm using embedded terminal in my IDE and there is IDE-binding Ctrl8 which is pretty useful and convenient and I would not like to rebind it. However the Ctrl8 shortcut works as Backspace when IDE-embedded terminal is focused which is really annoying. Moreover Ctrl8 for backward character delete seems useless for me.
I tried to open a terminal and then opened to Edit -> Preferences, then Shortcuts but I did not found the Ctrl8 in there. So how to simply disable it? Is there some config file?
command-line bash shortcut-keys gnome-terminal
add a comment |
up vote
1
down vote
favorite
Ubuntu 18.04
I'm using embedded terminal in my IDE and there is IDE-binding Ctrl8 which is pretty useful and convenient and I would not like to rebind it. However the Ctrl8 shortcut works as Backspace when IDE-embedded terminal is focused which is really annoying. Moreover Ctrl8 for backward character delete seems useless for me.
I tried to open a terminal and then opened to Edit -> Preferences, then Shortcuts but I did not found the Ctrl8 in there. So how to simply disable it? Is there some config file?
command-line bash shortcut-keys gnome-terminal
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Ubuntu 18.04
I'm using embedded terminal in my IDE and there is IDE-binding Ctrl8 which is pretty useful and convenient and I would not like to rebind it. However the Ctrl8 shortcut works as Backspace when IDE-embedded terminal is focused which is really annoying. Moreover Ctrl8 for backward character delete seems useless for me.
I tried to open a terminal and then opened to Edit -> Preferences, then Shortcuts but I did not found the Ctrl8 in there. So how to simply disable it? Is there some config file?
command-line bash shortcut-keys gnome-terminal
Ubuntu 18.04
I'm using embedded terminal in my IDE and there is IDE-binding Ctrl8 which is pretty useful and convenient and I would not like to rebind it. However the Ctrl8 shortcut works as Backspace when IDE-embedded terminal is focused which is really annoying. Moreover Ctrl8 for backward character delete seems useless for me.
I tried to open a terminal and then opened to Edit -> Preferences, then Shortcuts but I did not found the Ctrl8 in there. So how to simply disable it? Is there some config file?
command-line bash shortcut-keys gnome-terminal
command-line bash shortcut-keys gnome-terminal
edited Nov 13 at 6:53
muru
134k19283484
134k19283484
asked Nov 13 at 6:47
St.Antario
1084
1084
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07
add a comment |
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Ctrl8 is not a shortcut in the usual sense. Many terminal emulators conventionally send ^?
(aka Ctrl?) for Ctrl8 (see this U&L post for details). This is not usually configurable behaviour, short of modifying the source code.
^?
is the control code for ASCII Del and ^H
(aka CtrlH) for ASCII Backspace (see this informative post for a lot more on that).
So, if you don't want Ctrl8 to delete a character, you may need to change:
the control code your terminal sends for the Backspace key. GNOME Terminal usually defaults to
^?
(ASCII DEL), IIRC, so you need to set it to^H
. In GNOME Terminal, that's in Edit -> Profile Preferences -> Compatibility:
If your terminal doesn't have an option to configure this and sends
^?
for Backspace, then the next two steps will break Backspace.
the control code that the pseudo-TTY uses for
erase
Check what it is now:
$ stty -a | grep erase
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
If it's
erase= ^?
, you'll need to change that:
stty erase '^H'
the control code that your shell uses for erasing the previous character. In bash, that defaults to both
^H
and^?
if^?
is theerase
character for the controlling TTY.
Check what it is now:
$ bind -p | grep backward-del
"C-h": backward-delete-char
"C-?": backward-delete-char
Remove the
C-?
binding, and add aC-h
binding if needed:
bind -r 'C-?'
bind 'C-h: backward-delete-char'
Add these to your
.bashrc
to save these settings.
Or you can change your IDE shortcut.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Ctrl8 is not a shortcut in the usual sense. Many terminal emulators conventionally send ^?
(aka Ctrl?) for Ctrl8 (see this U&L post for details). This is not usually configurable behaviour, short of modifying the source code.
^?
is the control code for ASCII Del and ^H
(aka CtrlH) for ASCII Backspace (see this informative post for a lot more on that).
So, if you don't want Ctrl8 to delete a character, you may need to change:
the control code your terminal sends for the Backspace key. GNOME Terminal usually defaults to
^?
(ASCII DEL), IIRC, so you need to set it to^H
. In GNOME Terminal, that's in Edit -> Profile Preferences -> Compatibility:
If your terminal doesn't have an option to configure this and sends
^?
for Backspace, then the next two steps will break Backspace.
the control code that the pseudo-TTY uses for
erase
Check what it is now:
$ stty -a | grep erase
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
If it's
erase= ^?
, you'll need to change that:
stty erase '^H'
the control code that your shell uses for erasing the previous character. In bash, that defaults to both
^H
and^?
if^?
is theerase
character for the controlling TTY.
Check what it is now:
$ bind -p | grep backward-del
"C-h": backward-delete-char
"C-?": backward-delete-char
Remove the
C-?
binding, and add aC-h
binding if needed:
bind -r 'C-?'
bind 'C-h: backward-delete-char'
Add these to your
.bashrc
to save these settings.
Or you can change your IDE shortcut.
add a comment |
up vote
3
down vote
accepted
Ctrl8 is not a shortcut in the usual sense. Many terminal emulators conventionally send ^?
(aka Ctrl?) for Ctrl8 (see this U&L post for details). This is not usually configurable behaviour, short of modifying the source code.
^?
is the control code for ASCII Del and ^H
(aka CtrlH) for ASCII Backspace (see this informative post for a lot more on that).
So, if you don't want Ctrl8 to delete a character, you may need to change:
the control code your terminal sends for the Backspace key. GNOME Terminal usually defaults to
^?
(ASCII DEL), IIRC, so you need to set it to^H
. In GNOME Terminal, that's in Edit -> Profile Preferences -> Compatibility:
If your terminal doesn't have an option to configure this and sends
^?
for Backspace, then the next two steps will break Backspace.
the control code that the pseudo-TTY uses for
erase
Check what it is now:
$ stty -a | grep erase
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
If it's
erase= ^?
, you'll need to change that:
stty erase '^H'
the control code that your shell uses for erasing the previous character. In bash, that defaults to both
^H
and^?
if^?
is theerase
character for the controlling TTY.
Check what it is now:
$ bind -p | grep backward-del
"C-h": backward-delete-char
"C-?": backward-delete-char
Remove the
C-?
binding, and add aC-h
binding if needed:
bind -r 'C-?'
bind 'C-h: backward-delete-char'
Add these to your
.bashrc
to save these settings.
Or you can change your IDE shortcut.
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Ctrl8 is not a shortcut in the usual sense. Many terminal emulators conventionally send ^?
(aka Ctrl?) for Ctrl8 (see this U&L post for details). This is not usually configurable behaviour, short of modifying the source code.
^?
is the control code for ASCII Del and ^H
(aka CtrlH) for ASCII Backspace (see this informative post for a lot more on that).
So, if you don't want Ctrl8 to delete a character, you may need to change:
the control code your terminal sends for the Backspace key. GNOME Terminal usually defaults to
^?
(ASCII DEL), IIRC, so you need to set it to^H
. In GNOME Terminal, that's in Edit -> Profile Preferences -> Compatibility:
If your terminal doesn't have an option to configure this and sends
^?
for Backspace, then the next two steps will break Backspace.
the control code that the pseudo-TTY uses for
erase
Check what it is now:
$ stty -a | grep erase
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
If it's
erase= ^?
, you'll need to change that:
stty erase '^H'
the control code that your shell uses for erasing the previous character. In bash, that defaults to both
^H
and^?
if^?
is theerase
character for the controlling TTY.
Check what it is now:
$ bind -p | grep backward-del
"C-h": backward-delete-char
"C-?": backward-delete-char
Remove the
C-?
binding, and add aC-h
binding if needed:
bind -r 'C-?'
bind 'C-h: backward-delete-char'
Add these to your
.bashrc
to save these settings.
Or you can change your IDE shortcut.
Ctrl8 is not a shortcut in the usual sense. Many terminal emulators conventionally send ^?
(aka Ctrl?) for Ctrl8 (see this U&L post for details). This is not usually configurable behaviour, short of modifying the source code.
^?
is the control code for ASCII Del and ^H
(aka CtrlH) for ASCII Backspace (see this informative post for a lot more on that).
So, if you don't want Ctrl8 to delete a character, you may need to change:
the control code your terminal sends for the Backspace key. GNOME Terminal usually defaults to
^?
(ASCII DEL), IIRC, so you need to set it to^H
. In GNOME Terminal, that's in Edit -> Profile Preferences -> Compatibility:
If your terminal doesn't have an option to configure this and sends
^?
for Backspace, then the next two steps will break Backspace.
the control code that the pseudo-TTY uses for
erase
Check what it is now:
$ stty -a | grep erase
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
If it's
erase= ^?
, you'll need to change that:
stty erase '^H'
the control code that your shell uses for erasing the previous character. In bash, that defaults to both
^H
and^?
if^?
is theerase
character for the controlling TTY.
Check what it is now:
$ bind -p | grep backward-del
"C-h": backward-delete-char
"C-?": backward-delete-char
Remove the
C-?
binding, and add aC-h
binding if needed:
bind -r 'C-?'
bind 'C-h: backward-delete-char'
Add these to your
.bashrc
to save these settings.
Or you can change your IDE shortcut.
answered Nov 13 at 7:27
muru
134k19283484
134k19283484
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092450%2fhow-to-unbind-a-shortcut-in-a-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what is your IDE?
– Mark J. Adams
Nov 13 at 7:00
@MarkJ.Adams VSCode. I use it for C-programming.
– St.Antario
Nov 13 at 7:07