Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-22-2009, 12:05 AM   #1
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 243
Blog Entries: 2

Rep: Reputation: 41
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?

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sata1.00 : exception Emask 0x0 sAct 0x0.... Hitboxx Fedora 8 01-30-2009 12:10 AM
[Console] an xterm type with ttf fonts as fonts ? frenchn00b Linux - Desktop 1 08-04-2007 04:32 PM
DWARF2 unwinder stuck at 0x0 rocket357 Linux - Security 4 04-15-2007 03:11 AM
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 11:11 AM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration