How can I remap Control+e to Escape+Control+e in iTerm2?How do I send Ctrl-; in iterm2?Map CapsLock key to...
Giving a career talk in my old university, how prominently should I tell students my salary?
Either of .... (Plural/Singular)
Create chunks from an array
Locked Away- What am I?
What is the purpose of a disclaimer like "this is not legal advice"?
ESPP--any reason not to go all in?
Finding the minimum value of a function without using Calculus
-1 to the power of a irrational number
Is there a way to make cleveref distinguish two environments with the same counter?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
PTIJ: Sport in the Torah
Is there a logarithm base for which the logarithm becomes an identity function?
How do spaceships determine each other's mass in space?
Volume of hyperbola revolved about the y -axis
Is this Paypal Github SDK reference really a dangerous site?
Movie: boy escapes the real world and goes to a fantasy world with big furry trolls
The preposition for the verb (avenge) - avenge sb/sth (on OR from) sb
Are these two graphs isomorphic? Why/Why not?
What does *dead* mean in *What do you mean, dead?*?
Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?
What is better: yes / no radio, or simple checkbox?
Why is there an extra space when I type "ls" on the Desktop?
Why aren't there more Gauls like Obelix?
What can I do if someone tampers with my SSH public key?
How can I remap Control+e to Escape+Control+e in iTerm2?
How do I send Ctrl-; in iterm2?Map CapsLock key to ESC in Mac OS XHow to use key combinations with the option (⌥) key in iTerm2.app?Where to learn more about OSX terminal app keyboard settings codes?How can I get control+left arrow to go back one word in iTerm2?Binding caps lock key to another unique keyiterm2 ssh is using escape chars instead of “esc”, “left”, “right” buttonsHow to use AutoHotKey to make R-Control function as R-WinHow to remap combinations of keys including the windows key?Keyboard out of control after pressing specific combinationsGetting XKB remaped arrow keys (ISO_Level3_Shift + HJKL) to work properly with the WIN key under X11
I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap Ctrl+E to be Esc, Ctrl+E because Bash 4.2 no longer auto-expands variables using the Tab key.
I know I've done the first part correctly in choosing the keyboard shortcut to remap, but I don't understand how to look up the correct escape sequence (or hex codes) to send in the bottom section:

I reference they keyboard codes but that wasn't much help.
How can I remap this, and how can I look up the codes in the future? (No luck with Google)
Update
@db - thanks. To save others trouble I also found a cool util Key Codes.app which can be used to find key codes:

macos mac keyboard iterm2
add a comment |
I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap Ctrl+E to be Esc, Ctrl+E because Bash 4.2 no longer auto-expands variables using the Tab key.
I know I've done the first part correctly in choosing the keyboard shortcut to remap, but I don't understand how to look up the correct escape sequence (or hex codes) to send in the bottom section:

I reference they keyboard codes but that wasn't much help.
How can I remap this, and how can I look up the codes in the future? (No luck with Google)
Update
@db - thanks. To save others trouble I also found a cool util Key Codes.app which can be used to find key codes:

macos mac keyboard iterm2
add a comment |
I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap Ctrl+E to be Esc, Ctrl+E because Bash 4.2 no longer auto-expands variables using the Tab key.
I know I've done the first part correctly in choosing the keyboard shortcut to remap, but I don't understand how to look up the correct escape sequence (or hex codes) to send in the bottom section:

I reference they keyboard codes but that wasn't much help.
How can I remap this, and how can I look up the codes in the future? (No luck with Google)
Update
@db - thanks. To save others trouble I also found a cool util Key Codes.app which can be used to find key codes:

macos mac keyboard iterm2
I have set up a few custom keyboard shortcuts in iTerm2 to easily move the cursor around with the arrow keys, but now I'd like to remap Ctrl+E to be Esc, Ctrl+E because Bash 4.2 no longer auto-expands variables using the Tab key.
I know I've done the first part correctly in choosing the keyboard shortcut to remap, but I don't understand how to look up the correct escape sequence (or hex codes) to send in the bottom section:

I reference they keyboard codes but that wasn't much help.
How can I remap this, and how can I look up the codes in the future? (No luck with Google)
Update
@db - thanks. To save others trouble I also found a cool util Key Codes.app which can be used to find key codes:

macos mac keyboard iterm2
macos mac keyboard iterm2
edited 18 mins ago
Glorfindel
1,43241220
1,43241220
asked Jul 5 '12 at 17:36
cwdcwd
6,0883696143
6,0883696143
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Use the following: Send Hex Codes: 0x1B 0x05
Escapeis ASCII 27 (it's often written as octal33if your shell doesn't knowe).Ctrl-[Character]combinations result in the ASCII code corresponding to the character's position in the alphabet. Well-known examples are^Hfor ASCII 8 (Backspace),^Cfor ASCII 3, End of Text, or^Dfor ASCII 4, End of Transmission, and likewise, pressing^Eresults in ASCII 5 — so that hex code needs to be sent instead.
You can even use this (I cannot imagine a real use case, but let's not care about that) to replace pressing Enter (Line Feed) by ^J, or pressing Tab by ^I. See here for more information about control characters.
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful
– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2fsuperuser.com%2fquestions%2f445379%2fhow-can-i-remap-controle-to-escapecontrole-in-iterm2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use the following: Send Hex Codes: 0x1B 0x05
Escapeis ASCII 27 (it's often written as octal33if your shell doesn't knowe).Ctrl-[Character]combinations result in the ASCII code corresponding to the character's position in the alphabet. Well-known examples are^Hfor ASCII 8 (Backspace),^Cfor ASCII 3, End of Text, or^Dfor ASCII 4, End of Transmission, and likewise, pressing^Eresults in ASCII 5 — so that hex code needs to be sent instead.
You can even use this (I cannot imagine a real use case, but let's not care about that) to replace pressing Enter (Line Feed) by ^J, or pressing Tab by ^I. See here for more information about control characters.
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful
– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
add a comment |
Use the following: Send Hex Codes: 0x1B 0x05
Escapeis ASCII 27 (it's often written as octal33if your shell doesn't knowe).Ctrl-[Character]combinations result in the ASCII code corresponding to the character's position in the alphabet. Well-known examples are^Hfor ASCII 8 (Backspace),^Cfor ASCII 3, End of Text, or^Dfor ASCII 4, End of Transmission, and likewise, pressing^Eresults in ASCII 5 — so that hex code needs to be sent instead.
You can even use this (I cannot imagine a real use case, but let's not care about that) to replace pressing Enter (Line Feed) by ^J, or pressing Tab by ^I. See here for more information about control characters.
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful
– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
add a comment |
Use the following: Send Hex Codes: 0x1B 0x05
Escapeis ASCII 27 (it's often written as octal33if your shell doesn't knowe).Ctrl-[Character]combinations result in the ASCII code corresponding to the character's position in the alphabet. Well-known examples are^Hfor ASCII 8 (Backspace),^Cfor ASCII 3, End of Text, or^Dfor ASCII 4, End of Transmission, and likewise, pressing^Eresults in ASCII 5 — so that hex code needs to be sent instead.
You can even use this (I cannot imagine a real use case, but let's not care about that) to replace pressing Enter (Line Feed) by ^J, or pressing Tab by ^I. See here for more information about control characters.
Use the following: Send Hex Codes: 0x1B 0x05
Escapeis ASCII 27 (it's often written as octal33if your shell doesn't knowe).Ctrl-[Character]combinations result in the ASCII code corresponding to the character's position in the alphabet. Well-known examples are^Hfor ASCII 8 (Backspace),^Cfor ASCII 3, End of Text, or^Dfor ASCII 4, End of Transmission, and likewise, pressing^Eresults in ASCII 5 — so that hex code needs to be sent instead.
You can even use this (I cannot imagine a real use case, but let's not care about that) to replace pressing Enter (Line Feed) by ^J, or pressing Tab by ^I. See here for more information about control characters.
edited Sep 1 '12 at 8:30
answered Jul 5 '12 at 18:10
Daniel Beck♦Daniel Beck
93.1k12234288
93.1k12234288
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful
– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
add a comment |
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful
– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
@Daniel: can you take a look at superuser.com/questions/731427/how-do-i-send-ctrl-in-iterm2 ?
– eugene
Mar 20 '14 at 14:59
Thanks @Daniel. I am trying to get the hex codes for other key combinations (
C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
Thanks @Daniel. I am trying to get the hex codes for other key combinations (
C-M-<char>) in this thread, but it isn't clear to me what those hex codes would be. Your input on that thread would be extremely helpful– Amelio Vazquez-Reina
Sep 8 '14 at 15:34
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2fsuperuser.com%2fquestions%2f445379%2fhow-can-i-remap-controle-to-escapecontrole-in-iterm2%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