|
|
1.1 root 1: /*
2: * Banner -- print in large type
3: * banner(char *word, int spaces_in_front);
4: */
5: #include <stdio.h>
6: static char font[96][9]={
7: 0000,0000,0000,0000,0000,0000,0000,0000,0000, /* sp */
8: 0010,0010,0010,0010,0010,0000,0010,0000,0000, /* ! */
9: 0024,0024,0024,0000,0000,0000,0000,0000,0000, /* " */
10: 0024,0024,0076,0024,0076,0024,0024,0000,0000, /* # */
11: 0010,0036,0050,0034,0012,0074,0010,0000,0000, /* $ */
12: 0060,0062,0004,0010,0020,0046,0006,0000,0000, /* % */
13: 0010,0024,0024,0030,0052,0044,0032,0000,0000, /* & */
14: 0010,0010,0020,0000,0000,0000,0000,0000,0000, /* ' */
15: 0004,0010,0020,0020,0020,0010,0004,0000,0000, /* ( */
16: 0020,0010,0004,0004,0004,0010,0020,0000,0000, /* ) */
17: 0000,0010,0052,0034,0052,0010,0000,0000,0000, /* * */
18: 0000,0010,0010,0076,0010,0010,0000,0000,0000, /* + */
19: 0000,0000,0000,0000,0000,0030,0030,0010,0020, /* , */
20: 0000,0000,0000,0076,0000,0000,0000,0000,0000, /* - */
21: 0000,0000,0000,0000,0000,0030,0030,0000,0000, /* . */
22: 0001,0002,0004,0010,0020,0040,0100,0000,0000, /* / */
23: 0034,0042,0046,0052,0062,0042,0034,0000,0000, /* 0 */
24: 0010,0030,0010,0010,0010,0010,0034,0000,0000, /* 1 */
25: 0034,0042,0002,0004,0010,0020,0076,0000,0000, /* 2 */
26: 0076,0004,0010,0004,0002,0042,0034,0000,0000, /* 3 */
27: 0004,0014,0024,0044,0076,0004,0004,0000,0000, /* 4 */
28: 0076,0040,0074,0002,0002,0042,0034,0000,0000, /* 5 */
29: 0014,0020,0040,0074,0042,0042,0034,0000,0000, /* 6 */
30: 0076,0002,0004,0010,0020,0020,0020,0000,0000, /* 7 */
31: 0034,0042,0042,0034,0042,0042,0034,0000,0000, /* 8 */
32: 0034,0042,0042,0036,0002,0004,0030,0000,0000, /* 9 */
33: 0000,0030,0030,0000,0030,0030,0000,0000,0000, /* : */
34: 0000,0030,0030,0000,0030,0030,0010,0020,0000, /* ; */
35: 0002,0004,0010,0020,0010,0004,0002,0000,0000, /* < */
36: 0000,0000,0076,0000,0076,0000,0000,0000,0000, /* = */
37: 0040,0020,0010,0004,0010,0020,0040,0000,0000, /* > */
38: 0034,0042,0002,0004,0010,0000,0010,0000,0000, /* ? */
39: 0014,0022,0056,0052,0056,0040,0036,0000,0000, /* @ */
40: 0034,0042,0042,0076,0042,0042,0042,0000,0000, /* A */
41: 0074,0042,0042,0074,0042,0042,0074,0000,0000, /* B */
42: 0034,0042,0040,0040,0040,0042,0034,0000,0000, /* C */
43: 0070,0044,0042,0042,0042,0044,0070,0000,0000, /* D */
44: 0076,0040,0040,0074,0040,0040,0076,0000,0000, /* E */
45: 0076,0040,0040,0074,0040,0040,0040,0000,0000, /* F */
46: 0036,0040,0040,0046,0042,0042,0036,0000,0000, /* G */
47: 0042,0042,0042,0076,0042,0042,0042,0000,0000, /* H */
48: 0034,0010,0010,0010,0010,0010,0034,0000,0000, /* I */
49: 0034,0010,0010,0010,0010,0050,0020,0000,0000, /* J */
50: 0042,0044,0050,0060,0050,0044,0042,0000,0000, /* K */
51: 0040,0040,0040,0040,0040,0040,0076,0000,0000, /* L */
52: 0042,0066,0052,0052,0042,0042,0042,0000,0000, /* M */
53: 0042,0042,0062,0052,0046,0042,0042,0000,0000, /* N */
54: 0034,0042,0042,0042,0042,0042,0034,0000,0000, /* O */
55: 0074,0042,0042,0074,0040,0040,0040,0000,0000, /* P */
56: 0034,0042,0042,0042,0052,0044,0032,0000,0000, /* Q */
57: 0074,0042,0042,0074,0050,0044,0042,0000,0000, /* R */
58: 0034,0042,0040,0034,0002,0042,0034,0000,0000, /* S */
59: 0076,0010,0010,0010,0010,0010,0010,0000,0000, /* T */
60: 0042,0042,0042,0042,0042,0042,0034,0000,0000, /* U */
61: 0042,0042,0042,0024,0024,0010,0010,0000,0000, /* V */
62: 0042,0042,0042,0052,0052,0052,0024,0000,0000, /* W */
63: 0042,0042,0024,0010,0024,0042,0042,0000,0000, /* X */
64: 0042,0042,0024,0010,0010,0010,0010,0000,0000, /* Y */
65: 0076,0002,0004,0010,0020,0040,0076,0000,0000, /* Z */
66: 0034,0020,0020,0020,0020,0020,0034,0000,0000, /* [ */
67: 0100,0040,0020,0010,0004,0002,0001,0000,0000, /* \ */
68: 0034,0004,0004,0004,0004,0004,0034,0000,0000, /* ] */
69: 0010,0024,0042,0000,0000,0000,0000,0000,0000, /* ^ */
70: 0000,0000,0000,0000,0000,0000,0076,0000,0000, /* _ */
71: 0010,0010,0004,0000,0000,0000,0000,0000,0000, /* ` */
72: 0000,0000,0034,0002,0036,0042,0036,0000,0000, /* a */
73: 0040,0040,0074,0042,0042,0042,0074,0000,0000, /* b */
74: 0000,0000,0030,0044,0040,0044,0030,0000,0000, /* c */
75: 0002,0002,0036,0042,0042,0042,0036,0000,0000, /* d */
76: 0000,0000,0034,0042,0076,0040,0034,0000,0000, /* e */
77: 0014,0022,0070,0020,0020,0020,0020,0000,0000, /* f */
78: 0000,0000,0032,0046,0042,0046,0032,0002,0034, /* g */
79: 0040,0040,0074,0042,0042,0042,0042,0000,0000, /* h */
80: 0010,0000,0030,0010,0010,0010,0034,0000,0000, /* i */
81: 0004,0000,0004,0004,0004,0004,0004,0044,0030, /* j */
82: 0040,0040,0044,0050,0064,0042,0042,0000,0000, /* k */
83: 0030,0010,0010,0010,0010,0010,0034,0000,0000, /* l */
84: 0000,0000,0064,0052,0052,0052,0052,0000,0000, /* m */
85: 0000,0000,0074,0042,0042,0042,0042,0000,0000, /* n */
86: 0000,0000,0034,0042,0042,0042,0034,0000,0000, /* o */
87: 0000,0000,0054,0062,0042,0062,0054,0040,0040, /* p */
88: 0000,0000,0032,0046,0042,0046,0032,0002,0002, /* q */
89: 0000,0000,0054,0062,0040,0040,0040,0000,0000, /* r */
90: 0000,0000,0036,0040,0034,0002,0074,0000,0000, /* s */
91: 0020,0020,0070,0020,0020,0022,0014,0000,0000, /* t */
92: 0000,0000,0042,0042,0042,0046,0032,0000,0000, /* u */
93: 0000,0000,0042,0042,0042,0024,0010,0000,0000, /* v */
94: 0000,0000,0042,0042,0052,0052,0024,0000,0000, /* w */
95: 0000,0000,0042,0024,0010,0024,0042,0000,0000, /* x */
96: 0000,0000,0042,0042,0042,0046,0032,0002,0034, /* y */
97: 0000,0000,0076,0004,0010,0020,0076,0000,0000, /* z */
98: 0014,0020,0020,0040,0020,0020,0014,0000,0000, /* { */
99: 0010,0010,0010,0000,0010,0010,0010,0000,0000, /* | */
100: 0030,0004,0004,0002,0004,0004,0030,0000,0000, /* } */
101: 0020,0052,0004,0000,0000,0000,0000,0000,0000, /* ~ */
102: 0177,0177,0177,0177,0177,0177,0177,0177,0177 /* del */
103: };
104:
105: void
106: banner(word, pad)
107: unsigned char *word;
108: {
109: register j, f, i;
110: unsigned char c;
111: register unsigned char *s;
112:
113: putchar('\n');
114: for(i = 0; i < 9; i++) {
115: for(j = 0; j < pad; j++)
116: putchar(' ');
117: for(s = word; c = *s; s++) {
118: f = ((c <= ' ') || (c & 0x80)) ? 0 : font[c - ' '][i];
119: for(j = 0x80; j; j >>= 1)
120: putchar((f & j) ? c : ' ');
121: }
122: putchar('\n');
123: }
124: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.