Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extended ascii in gcc program

Status
Not open for further replies.

bwysocki

Programmer
Sep 19, 2001
38
US
I'm in the process of porting a SCO Unix C program over to SuSE Linux. It is a text based program which I am currently executing in a bash shell through the KDE Konsole shell program. (on SCO it runs from the ksh command line).

The program is written in C which I compiled with gcc.

The program uses extended ASCII characters to draw line graphics (ie. ASCII decimal value 179 draws a vertical line).

This works fine on DOS and SCO. But on Linux the line graphics get translated into box characters. Our quick fix is to change the characters to standard ASCII (ie. using a pipe (|) symbol for a vertical line). This gives us line graphics in our program, but looks like garbage.

Is there a way to use ASCII line graphics in Linux?

Thanks
 
No I'm not using ncurses.

I wrote a simple program that prints out the ascii table. Every character 128-255 is either blank, or a box looking character. So the problem on the surface appears that the character set I'm currently using doesn't have the characters I'm looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top