In the documentation there stands "When {char1} is a special key, the code for that key is inserted in <> form."
I have tried Ctrl-K<Escape>, got ?, epected <Esc>. After some timeout the question mark disappeared.
Is there a way how to insert <Esc> another way then typing it?
To Reproduce
CTRL-KExpected behavior
<Esc> is inserted. Probably after some time because of escape sequences.
Environment (please complete the following information):
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
I can confirm that when I type Ctrl-K then BackSpace, the string <BS> is literally inserted.
Same for <F1>, <Home>, <C-BS>, <C-CR>, <S-CR>, <S-Tab> etc.
However, some other special keys like <Esc>, <CR>, <Tab>, <C-A> don't work.
I'm not sure what's the difference of them.
I can confirm that when I type Ctrl-K then BackSpace, the string
<BS>is literally inserted.
Same for<F1>,<Home>,<C-BS>,<C-CR>,<S-CR>,<S-Tab>etc.
However, some other special keys like<Esc>,<CR>,<Tab>,<C-A>don't work.
I'm not sure what's the difference of them.
<Home>
<End>
<Insert>
<Del>
<PageUp>
<PageDown>
<BS>
<F10>
<F2>
<F12>
<F1>
but F11 ok at xterm -vs- not always ok at others.
—
You are receiving this because you commented.
IIUC there is a collision or ambiguity with the general meaning of <Esc> which is "I've changed my mind and want to abort what I was doing".
<Ctrl-V><Esc> will give you ^[ which is a real Escape character. AFAIK the easiest way (and possibly the only one) to get <Esc> in <> notation is to type it in ASCII: less-than, upper-E-for-Echo, lower-S-for-Sierra, lower-C-for-Charlie, greater-than.
Best regards,
Tony.
—
You are receiving this because you commented.