Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I like to use Emacs in the terminal with out X(emacs -nw). But the problem is I can't use function keys(f1 ... f12) in gnome terminal. How can I pass them to Emacs in gnome-terminal?

If it's not possible in gnome-terminal, I would be interested to know any other terminal which can pass them.

BTW, I am using
ubuntu 11.04,
emacs 23.3 and 24

EDIT: These are the characters that Emacs is receiving in -nw from gnome-terminal
f5 [15~]
f6 [17~]
f7 [18~]
f8 [19~]
f9 [20~]
f10 [21~]
f11 [23~]
f12 [24~]

and with prefixes C & M
C-f6 [17;5~]
M-f6 [17;3~]

share|improve this question
Have a look at… – Dysaster Jul 27 '11 at 5:54
@Dysaster, thanks for the comment, Similar but couldn't get it work. I am not sure how to assign/bind these characters(please see the Edit). – kindahero Jul 27 '11 at 6:32
Do you get [15~] or ^[[15~? Mine is the second one. – Dysaster Jul 27 '11 at 6:53
hmm.. I just noticed that, if I dont load paredit-mode gnome-terminal working fine.. – kindahero Jul 28 '11 at 5:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.