6 static char grid[5][5] = {
7 { CH_ULCORNER, CH_HLINE, CH_TTEE, CH_HLINE, CH_URCORNER },
8 { CH_VLINE, ' ', CH_VLINE, ' ', CH_VLINE },
9 { CH_LTEE, CH_HLINE, CH_CROSS, CH_HLINE, CH_RTEE },
10 { CH_VLINE, ' ', CH_VLINE, ' ', CH_VLINE },
11 { CH_LLCORNER, CH_HLINE, CH_BTEE, CH_HLINE, CH_LRCORNER },
17 unsigned char xsize, ysize, tcol, inpos = 0;
20 screensize(&xsize, &ysize);
21 cputs("cc65 conio test\n\rInput:[ ]");
23 cputsxy(0, 2, "Colors:" );
24 tcol = textcolor(0); /* remember original textcolor */
25 for (i = 0; i < 3; ++i) {
27 for (j = 0; j < 16; ++j) {
34 cprintf("\n\n\r Screensize is: %dx%d", xsize, ysize );
39 cvlinexy(xsize-1,6,3);
40 cputcxy(0,6,CH_ULCORNER);
41 cputcxy(xsize-1,6,CH_URCORNER);
42 cputcxy(0,8,CH_LLCORNER);
43 cputcxy(xsize-1,8,CH_LRCORNER);
45 for (i = 0; i < 5; ++i) {
47 for (j = 0; j < 5; ++j) {
52 gotoxy(0,ysize - 2 - ((256 + xsize) / xsize));
54 for (i = 0; i < xsize; ++i) {
58 for (i = 0; i < 256; ++i) {
59 if ((i != '\n') && (i != '\r')) {
67 for (i = 0; i < xsize; ++i) {
85 inpos = (inpos + 1) & 7;