I would like to define a compose key on my system (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:$ 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 tableI'm sure it's not that difficult but I miss how to deal with that ...
How to define a Compose Key in terminal (no desktop environment)?
console;keyboard layout
On newer Debian and Ubuntu systems, your keyboard settings are put in /etc/default/keyboard and shared between X and the console.  Just runsudo dpkg-reconfigure keyboard-configurationand select Compose key: Right Alt (AltGr) on the appropriate screen.You could also put XKBOPTIONS=compose:ralt in /etc/default/keyboard and runsudo dpkg-reconfigure console-setupOlder systems have a Compose key on the console by default.  In the us layout, pressing both Alt keys together acts like Compose.1For example: Alt+AltGr, , A => If you prefer AltGr only to be Compose, you need to changealt keycode 100 = Composein your active keyboard map tokeycode 100 = ComposeThe easiest way to do this is to make the above changes in /lib/kbd/keymaps/i386/include/linux-with-alt-and-altgr.inc.A better way is to create a new file called /lib/kbd/keymaps/i386/include/altgr-is-compose.inc with the above line, create a new keymap that includes it, and set that to your default keymap.PrtScn also acts as Compose by default.