Forum Home
Press F1
 
Thread ID: 67233 2006-03-22 01:42:00 Alt codes in Linux Myth (110) Press F1
Post ID Timestamp Content User
439746 2006-03-22 01:42:00 Is is actually possible to do alt codes in linux?
i.e. in windows alt+0160 produces a space, or alt+(whatever) creates the relevant character.

I know its possible by opening character map, but is it possible by using the keyboard only?
Myth (110)
439747 2006-03-22 03:35:00 It would depend on the application. Linux is the OS, and it accepts various ways of entering character codes. \n , 0x0a, \012 are three ways that Linux will accept for the linefeed (LF, newline) character. (the C escape \n, hex code, and escaped octal code).

But Linux itself (or rather, the command processor applications) probably won't accept Alt+xxx . It's got its own ways of doing it. Applications, which in their attempts to be user fiendly by emulating the MS ways of doing things, might. ;) Try.
Graham L (2)
439748 2006-03-22 13:46:00 Is is actually possible to do alt codes in linux?
i.e. in windows alt+0160 produces a space, or alt+(whatever) creates the relevant character.

I know its possible by opening character map, but is it possible by using the keyboard only?

Yes. It is much more powerful than the simple Windows alt code stuff. It is done with xmodmap.

See man xmodmap. Google xmodmap for customisations.
vinref (6194)
1