0

I'm trying to custom keybind Ctrl+Meta+i and it does not seem to work.
Here is what I have in my .Xresources file:

XTerm.VT100.Translations: #override \
Ctrl      <KeyPress> I: string("^[JDI")  \n\
Meta      <KeyPress> I: string("^[JDMI") \n\
Ctrl Meta <KeyPress> I: string("^[JDCMI")

When I run the showkey -a command in the terminal to look at what each individual key sequence is generating it spits out: (for Ctrl+i Meta+i and Ctrl+Meta+i respectively):

^[JDI    27 0033 0x1b
         74 0112 0x4a
         68 0104 0x44
         73 0111 0x49
^[JDMI   27 0333 0x1b
         74 0112 0x4a
         77 0115 0x4d
         73 0111 0x49
^[JDI    27 0033 0x1b
         74 0112 0x4a
         68 0104 0x44
         73 0111 0x49

As you can see pressing Ctrl+Meta+i spits out the sequence Ctrl+i.
It's like the terminal is completely ignoring the fact that I'm holding down both Ctrl and Meta at the same time.

0

You can be more explicit with the bindings by adding what you do not want pressed, e.g. ~Meta:

Ctrl ~Meta <KeyPress> I: string("^[JDI")  \n\
Meta ~Ctrl <KeyPress> I: string("^[JDMI") \n\

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.