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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to define a compose key on my system (it's a Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal. I would like to set it up on my Alt-Gr key (right Alt). I've tried for a while but I can't figure out how to set it up.

I've been investigating and found some directions. But I don't know what to do with that.

$ showkey gives me the keycode of my Alt-Gr key (#100)

$ dumpkeys and $ dumpkeys --compose-only output "the current contents of the keyboard's driver", in the format specified by keymaps, according to the man page

$ loadkeys load a keyboard translation table

I'm sure it's not that difficult but I can't figure out how to deal with that ...

share|improve this question
I posted my questions on, maybe I'll have some more answers ... I'm not sure whether it should be deleted from here or not? – cedbeu Aug 1 '12 at 8:44

In a plain console -- no graphical environment -- the default 'Compose' key is usually assigned to the 'prt sc' key.

Your distro may vary.

See the man pages for 'keytables' 'dumpkeys' and 'loadkeys' for more.

share|improve this answer

Your Answer


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

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