I want to write a game which runs in a terminal. I do some terminal coloring and wanted to use some unicode characters for nice ascii art "graphics". But a lot of unicode characters aren't supported in the linux terminal (the non-X terminal, I don't know how you call it... VT100? I mean the terminal which uses the text mode for output, no graphic mode, so the same font as in bios is used to display the text.)
For example, I wanted to draw half character "pixels" using the "half block" characters U+2580 (▀) and U+2584 (▄) but these are not supported in the terminal. (These are only examples - I want to use a lot more special characters...)
Which characters does this font support? Is there any document or table listing these characters? Is this device-dependent or is there any "standard"?
termios
and stuff... Maybe I can set the encoding of the underlying console manually? – leemes Mar 20 '11 at 00:28termios
provides a portable interface to text terminals. You'll have to go beyond that interface to set up the Linux console for unicode (more precisely, your program would output unicode and the console driver would translate your output to the encoding of a cp437 font). I don't know the exact commands involved, but I think theconsolechars
man page and the lct documentation has the information you need. – Gilles 'SO- stop being evil' Mar 20 '11 at 00:34