[comp.sys.ibm.pc] Useful line drawing characters definitions

cramer@optilink.UUCP (Clayton Cramer) (06/28/88)

This is NOT a binary.

I had to create this file recently to access the line drawing characters
from C, and decided that I could probably save someone else a boring
and irritating task.

======================================================================
/* The following definitions are for the line drawing characters of the
IBM display adapters.  The _Draw and _Dbl definitions are for the characters
which are entirely made of single or double lines.  The _Line definitions
describe line drawing characters made up any combination of single and
double lines.  The four digits after _Line refer to the number of lines
in the upper, right, bottom, and left quadrants of each character position. */

/* Single line drawing characters. */
#define _DrawUpperLeft_ 	'\x0da'
#define _DrawUpperRight_	'\x0bf'
#define _DrawHorizBar_ 		'\x0c4'
#define _DrawVertBar_		'\x0b3'
#define _DrawLowerLeft_		'\x0c0'
#define _DrawLowerRight_	'\x0d9'
#define _DrawLeftCross_		'\x0c3'
#define _DrawRightCross_	'\x0b4'
#define _DrawUpperCross_	'\x0c2'
#define _DrawLowerCross_	'\x0c1'
#define _DrawCross_			'\x0c5'

/* Double line drawing characters. */
#define _DblUpperLeft_ 		'\x0c9'
#define _DblUpperRight_		'\x0bb'
#define _DblHorizBar_ 		'\x0cd'
#define _DblVertBar_		'\x0ba'
#define _DblLowerLeft_		'\x0c8'
#define _DblLowerRight_		'\x0bc'
#define _DblLeftCross_		'\x0cc'
#define _DblRightCross_		'\x0b9'
#define _DblUpperCross_		'\x0cb'
#define _DblLowerCross_		'\x0ca'
#define _DblCross_			'\x0ce'

/* Single & double line drawing characters. */
#define _Line1010_			'\x0b3'
#define _Line1011_			'\x0b4'
#define _Line1012_			'\x0b5'
#define _Line2021_			'\x0b6'
#define _Line0021_			'\x0b7'
#define _Line0012_			'\x0b8'
#define _Line2022_			'\x0b9'
#define _Line2020_			'\x0ba'
#define _Line0022_			'\x0bb'
#define _Line2002_			'\x0bc'
#define _Line2001_			'\x0bd'
#define _Line1002_			'\x0be'
#define _Line0011_			'\x0bf'
#define _Line1100_			'\x0c0'
#define _Line1101_			'\x0c1'
#define _Line0111_			'\x0c2'
#define _Line1110_			'\x0c3'
#define _Line0101_			'\x0c4'
#define _Line1111_			'\x0c5'
#define _Line1210_			'\x0c6'
#define _Line2120_			'\x0c7'
#define _Line2200_			'\x0c8'
#define _Line0220_			'\x0c9'
#define _Line2202_			'\x0ca'
#define _Line0222_			'\x0cb'
#define _Line2220_			'\x0cc'
#define _Line0202_			'\x0cd'
#define _Line4444_			'\x0ce'
#define _Line1202_			'\x0cf'
#define _Line2101_			'\x0d0'
#define _Line0212_			'\x0d1'
#define _Line0121_			'\x0d2'
#define _Line2100_			'\x0d3'
#define _Line1200_			'\x0d4'
#define _Line0210_			'\x0d5'
#define _Line0120_			'\x0d6'
#define _Line2121_			'\x0d7'
#define _Line1212_			'\x0d8'
#define _Line1001_			'\x0d9'
#define _Line0110_			'\x0da'