--conio.h-DOS ONLY!--
textbackground();
textcolor();
highvideo();
lowvideo();
normvideo();
movetext(1, 1, strlen(str), 2, 10, 10);
delline() //deletes current line and moves text up
clreol() //clrs rest of line without moveing cursor
insline(); //inserts line
window(1,1,70,20);
textbackground(BLACK);
textcolor(WHITE);
cprintf("Hello");
void textinfo() {
struct text_info ti;
gettextinfo(&ti);
cprintf("window left %2d\r\n",ti.winleft);
cprintf("window top %2d\r\n",ti.wintop);
cprintf("window right %2d\r\n",ti.winright);
cprintf("window bottom %2d\r\n",ti.winbottom);
cprintf("attribute %2d\r\n",ti.attribute);
cprintf("normal attribute %2d\r\n",ti.normattr);
cprintf("current mode %2d\r\n",ti.currmode);
cprintf("screen height %2d\r\n",ti.screenheight);
cprintf("screen width %2d\r\n",ti.screenwidth);
cprintf("current x %2d\r\n",ti.curx);
cprintf("current y %2d\r\n",ti.cury);
}
void cltime() {
struct time t;
while(!key(27)) {
gettime(&t);
cprintf("%02i:%02i:%02i:%02i\r",t.ti_hour,t.ti_min,t.ti_sec,t.ti_hund);
}
}
textmode(C80);
Constant ³Value³ Text Mode
ÍÍÍÍÍÍÍÍÍÍØÍÍÍÍÍØÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
LASTMODE ³ -1 ³ Previous text mode
BW40 ³ 0 ³ Black and white 40 columns
C40 ³ 1 ³ Color 40 columns
BW80 ³ 2 ³ Black and white 80 columns
C80 ³ 3 ³ Color 80 columns
MONO ³ 7 ³ Monochrome 80 columns
C4350 ³ 64 ³ EGA and 43-line
³ ³ VGA 50-line
#define doublebdr "ÉÍ»ºÈ¼"
#define singlebdr "ÚÄ¿³ÀÙ"
#define doublesng "ÖÄ·ºÓ½"
"žéðï™ûëé¨"
"®¯"
"œäíêèá"
"«¬¦üñàîø§óò‘’÷ýåãì"
"² ° ± ú Û Þ þ ß "