updated conio test
This commit is contained in:
@@ -80,9 +80,18 @@ void main(void)
|
|||||||
cputs(" revers");
|
cputs(" revers");
|
||||||
revers(0);
|
revers(0);
|
||||||
|
|
||||||
gotoxy(7 + inpos,1);
|
gotoxy(8 + inpos,1);
|
||||||
cputc(cgetc());
|
i = cgetc();
|
||||||
|
if ((i >= '0') && (i<='9')) {
|
||||||
|
textcolor(i - '0');
|
||||||
|
} else if (i == CH_CURS_LEFT) {
|
||||||
|
inpos = (inpos - 1) & 7;
|
||||||
|
} else if (i == CH_CURS_RIGHT) {
|
||||||
inpos = (inpos + 1) & 7;
|
inpos = (inpos + 1) & 7;
|
||||||
|
} else {
|
||||||
|
cputc(i);
|
||||||
|
inpos = (inpos + 1) & 7;
|
||||||
|
}
|
||||||
|
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user