get ubuntu terminal to send an escape sequence (control+shift+up)
Posted
by
user62046
on Super User
See other posts from Super User
or by user62046
Published on 2011-01-09T05:31:42Z
Indexed on
2011/01/09
5:55 UTC
Read the original article
Hit count: 421
This problem starts when I use emacs ( with -nw option). Let me first explain it. I tried to define hotkey (for emacs) as following
(global-set-key [(control shift up)] 'other-window)
but it doesn't work (no error, just doesn't work), neither does
(global-set-key [(control shift down)] 'other-window)
But
(global-set-key [(control shift right)] 'other-window)
and
(global-set-key [(control shift left)] 'other-window)
work!
But because the last two key combinations are used by emacs (as default), I don't wanna change them for other functions.
So how could I make control-shift-up and control-shift-down work?
I have googled "(control shift up)", it seems that control-shift-up is used by other people, (but not very few results).
In the Stack Overflow forum, Gille answered me as following:
Ctrl+Shift+Up does send a signal to your computer, but your terminal emulator is apparently not transmitting any escape sequence for it. So your problem is in two parts. First you must get your terminal emulator to send an escape sequence, which depends on your terminal emulator, and is Super User material, or Unix.SE if you're using a unix system. Then you need to declare the escape sequence in Emacs, and my answer explains that part
So I come here for this question:
How do I get my terminal (I use ubuntu 10.04, and the built-in terminal) to send an escape sequence for Control+Shift+Up Control+Shift+down
© Super User or respective owner