fix cpeekc/cpeekcolor/cpeekrevers/cpeeks for atmos, replaces what is in #532
This commit is contained in:
@@ -540,12 +540,13 @@ EXELIST_sym1 = \
|
||||
strnlen \
|
||||
strqtok-test
|
||||
|
||||
# omitted: clock-test cpeek-test conio deb dir-test em-test exec-test1 exec-test2
|
||||
# omitted: clock-test cpeek-test deb dir-test em-test exec-test1 exec-test2
|
||||
# fileio-test ft mouse-test posixio-test rename-test seek ser-test
|
||||
EXELIST_atmos = \
|
||||
minimal \
|
||||
arg-test \
|
||||
clock \
|
||||
conio \
|
||||
cprintf \
|
||||
cursor \
|
||||
div-test \
|
||||
|
||||
@@ -24,6 +24,12 @@
|
||||
#define NUMCOLS 16
|
||||
#endif
|
||||
|
||||
#if defined(__ATMOS__)
|
||||
// FIXME: those should be defined elsewhere?
|
||||
#define CH_HLINE '-'
|
||||
#define CH_VLINE '!'
|
||||
#endif
|
||||
|
||||
static char grid[5][5] = {
|
||||
{CH_ULCORNER, CH_HLINE, CH_TTEE, CH_HLINE, CH_URCORNER},
|
||||
{CH_VLINE, ' ', CH_VLINE, ' ', CH_VLINE },
|
||||
@@ -73,6 +79,14 @@ void peektest(void)
|
||||
revers(rbuf[j]);
|
||||
cputc(buf[j]);
|
||||
}
|
||||
gotoxy(0, LINE_PEEKTEST);
|
||||
cpeeks(buf, NUMCOLS);
|
||||
(void)textcolor(1);
|
||||
revers(0);
|
||||
gotoxy(20, LINE_PEEKTEST);
|
||||
for (j = 0; j < NUMCOLS; ++j) {
|
||||
cputc(buf[j]);
|
||||
}
|
||||
}
|
||||
|
||||
void main(void)
|
||||
|
||||
Reference in New Issue
Block a user