Lines 54-60
Link Here
|
54 |
.nf |
54 |
.nf |
55 |
.ce |
55 |
.ce |
56 |
\fI----------------------------------------\fR |
56 |
\fI----------------------------------------\fR |
57 |
#include <cdk.h> |
57 |
#include <cdk/cdk.h> |
58 |
|
58 |
|
59 |
void main() |
59 |
void main() |
60 |
{ |
60 |
{ |
Lines 67-76
Link Here
|
67 |
screen = initscr(); |
67 |
screen = initscr(); |
68 |
cdkscreen = initCDKScreen (screen); |
68 |
cdkscreen = initCDKScreen (screen); |
69 |
|
69 |
|
|
|
70 |
/* Start CDK Colors */ |
71 |
initCDKColor(); |
72 |
|
70 |
/* Set the labels up. */ |
73 |
/* Set the labels up. */ |
71 |
mesg[0] = "</1>This line should have a yellow foreground and a blue background.<!1>"; |
74 |
mesg[0] = "</31>This line should have a yellow foreground and a blue background.<!31>"; |
72 |
mesg[1] = "</2>This line should have a white foreground and a blue background.<!2>"; |
75 |
mesg[1] = "</05>This line should have a white foreground and a blue background.<!05>"; |
73 |
mesg[2] = "</3>This line should have a yellow foreground and a red background.<!3>"; |
76 |
mesg[2] = "</26>This line should have a yellow foreground and a red background.<!26>"; |
74 |
mesg[3] = "<C>This line should be set to whatever the screen default is."; |
77 |
mesg[3] = "<C>This line should be set to whatever the screen default is."; |
75 |
|
78 |
|
76 |
/* Declare the labels. */ |
79 |
/* Declare the labels. */ |
Lines 121-127
Link Here
|
121 |
.nf |
124 |
.nf |
122 |
.ce |
125 |
.ce |
123 |
\fI----------------------------------------\fR |
126 |
\fI----------------------------------------\fR |
124 |
#include <cdk.h> |
127 |
#include <cdk/cdk.h> |
125 |
|
128 |
|
126 |
void main() |
129 |
void main() |
127 |
{ |
130 |
{ |
Lines 134-143
Link Here
|
134 |
screen = initscr(); |
137 |
screen = initscr(); |
135 |
cdkscreen = initCDKScreen (screen); |
138 |
cdkscreen = initCDKScreen (screen); |
136 |
|
139 |
|
|
|
140 |
/* Start CDK Colors */ |
141 |
initCDKColor(); |
142 |
|
137 |
/* Set the labels up. */ |
143 |
/* Set the labels up. */ |
138 |
mesg[0] = "</B/1>Bold text yellow foreground / blue background.<!1>"; |
144 |
mesg[0] = "</B/31>Bold text yellow foreground / blue background.<!31>"; |
139 |
mesg[1] = "</U/2>Underlined text white foreground / blue background.<!2>"; |
145 |
mesg[1] = "</U/05>Underlined text white foreground / blue background.<!05>"; |
140 |
mesg[2] = "</K/3>Blinking text yellow foreground / red background.<!3>"; |
146 |
mesg[2] = "</K/26>Blinking text yellow foreground / red background.<!26>"; |
141 |
mesg[3] = "<C>This line uses the screen default colors."; |
147 |
mesg[3] = "<C>This line uses the screen default colors."; |
142 |
|
148 |
|
143 |
/* Declare the labels. */ |
149 |
/* Declare the labels. */ |
Lines 190-211
Link Here
|
190 |
.ce |
196 |
.ce |
191 |
\fI----------------------------------------\fR |
197 |
\fI----------------------------------------\fR |
192 |
.nf |
198 |
.nf |
193 |
#include <cdk.h> |
199 |
#include <cdk/cdk.h> |
194 |
|
200 |
|
195 |
void main() |
201 |
void main() |
196 |
{ |
202 |
{ |
197 |
CDKSCREEN *cdkscreen; |
203 |
CDKSCREEN *cdkscreen; |
198 |
CDKLABEL *demo; |
204 |
CDKLABEL *demo; |
199 |
WINDOW *screen; |
205 |
WINDOW *screen; |
200 |
char *mesg[4]; |
206 |
char *mesg[5]; |
201 |
|
207 |
|
202 |
/* Initialize the Cdk screen. */ |
208 |
/* Initialize the Cdk screen. */ |
203 |
screen = initscr(); |
209 |
screen = initscr(); |
204 |
cdkscreen = initCDKScreen (screen); |
210 |
cdkscreen = initCDKScreen (screen); |
205 |
|
211 |
|
|
|
212 |
/* Start CDK Colors */ |
213 |
initCDKColor(); |
214 |
|
206 |
/* Set the labels up. */ |
215 |
/* Set the labels up. */ |
207 |
mesg[0] = "<R></B/1>This line should have a yellow foreground and a blue background.<!1>"; |
216 |
mesg[0] = "<R></B/31>This line should have a yellow foreground and a blue background.<!31>"; |
208 |
mesg[1] = "</U/2>This line should have a white foreground and a blue background.<!2>"; |
217 |
mesg[1] = "</U/05>This line should have a white foreground and a blue background.<!05>"; |
209 |
mesg[2] = "<B=+>This is a bullet."; |
218 |
mesg[2] = "<B=+>This is a bullet."; |
210 |
mesg[3] = "<I=10>This is indented 10 characters."; |
219 |
mesg[3] = "<I=10>This is indented 10 characters."; |
211 |
mesg[4] = "<C>This line should be set to whatever the screen default is."; |
220 |
mesg[4] = "<C>This line should be set to whatever the screen default is."; |
Lines 295-301
Link Here
|
295 |
.ce |
304 |
.ce |
296 |
\fI----------------------------------------\fR |
305 |
\fI----------------------------------------\fR |
297 |
.nf |
306 |
.nf |
298 |
#include "cdk.h" |
307 |
#include <cdk/cdk.h> |
299 |
|
308 |
|
300 |
void main() |
309 |
void main() |
301 |
{ |
310 |
{ |
Lines 313-321
Link Here
|
313 |
initCDKColor(); |
322 |
initCDKColor(); |
314 |
|
323 |
|
315 |
/* Set the labels up. */ |
324 |
/* Set the labels up. */ |
316 |
mesg[0] = "<C><#UL><#HL(25)><#UR>"; |
325 |
mesg[0] = "<C><#UL><#HL(26)><#UR>"; |
317 |
mesg[1] = "<C><#VL></R>This text should be boxed.<!R><#VL>"; |
326 |
mesg[1] = "<C><#VL></R>This text should be boxed.<!R><#VL>"; |
318 |
mesg[2] = "<C><#LL><#HL(25)><#LR>"; |
327 |
mesg[2] = "<C><#LL><#HL(26)><#LR>"; |
319 |
mesg[3] = "<C>While this is not."; |
328 |
mesg[3] = "<C>While this is not."; |
320 |
|
329 |
|
321 |
/* Declare the labels. */ |
330 |
/* Declare the labels. */ |