If you now type C-S-up nothing happens - of course not, since the terminal in which your Emacs runs doesn't produce anything. You'll get asked in the minibuffer to type a key to see what function it is bound to. We can double-verify this if you just start a new emacs -nw and type C-h k to invoke Emacs' describe-key function. You'll see that no control sequence is entered, which hints at the fact that when you press C-S-up in Emacs, it will actually never receive anything, because the terminal is not able to produce anything to pass on to Emacs. Now, try the same thing for C-S-up: Control-v Control-Shift-up In our case, it will insert the sequence for Control-Shift right, and that'll look something like this: ^[[1 6C The Control-v part will make the control sequence for the next key be inserted verbatim into your shell. Open a terminal and then type: Control-v Control-Shift-right The reason for this is not an Emacs problem, but comes from the fact that your terminal cannot produce a key sequence for C-S-up.
0 Comments
Leave a Reply. |