This question already has an answer here:
I am having problems to configure my
-nw mode using linux thorough
ssh. I am trying to map Ctrl+Shift+z to redo using undo-tree-redo. I tried the following code
(defalias 'redo 'undo-tree-redo) (global-set-key (kbd "C-z") 'undo) (global-set-key (kbd "C-S-z") 'redo)
I also want to map some other key bindings using the Shift key, however, it seems that it is not mapped correctly. I tried to follow this solution Shift+Up isn't recognized by Emacs in a terminal. However when I try to get the escape function to say Ctrl+Shift+z using Ctrl+Q, it returns
^Z, which is exactly the same as whiotu the shift key!!!!
So the Shift key has absolutly no effect on the key binding. The shift key does work though, since I can use it to capitalize etc.
How can I solve this issue?
Note: some other keys also have a weird behaviour when using Ctrl+Q to insert the characters literally. For instance the return key gives
^M and the backspace gives
^?. I have absolutely no idea what's going on!