Console fonts question: 0x0 = 0xC4?
I have been tinkering around with ncurses and have noticed something rather odd. In gbdfed and bitedit, they both show that the console font default8x16.psfu has the line character at 0xC4, however, when I wrote a small test program to create windows with ncurses it shows the character Ä where the line that should be, at 0xC4. Now when I run gucharmap in X, under latin it shows Ä at 0xC4. Also, a simple program to view the characters of a font I'm using in the console shows Ä at 0xC4.
And after messing up one of my tty's yesterday trying to find the line character, I found that the line that should be at 0xC4 is printed when I use 0x0.
Is 0x0 the correct char to pass to wborder() to produce a line for the top and bottom of a window?
<Edit> Ok, I changed the console font to several different fonts and tested them running both mc and the ncurses test program I wrote. The last font I used was drdos8x16.psfu which mc showed it's borders correctly, but the test program did not. When I ran my character view program it didn't show a single border character.
Anyone know of anything that I could read to understand why mc shows a border when no border characters seem to exist in the font?
<Edit2>
I had modified a console font I've been working on and added the border characters. Now 0xC4 contains the correct line. My test program and mc work perfectly. However, ndn shows lqkxmj for the border characters. This is wierd...
Last edited by Mol_Bolom; 04-22-2009 at 01:50 AM.
|