void menu(int l) { box(GREEN); _setcursortype(_NOCURSOR); gotoxy(37,3);textcolor(WHITE); cprintf("Wizard"); gotoxy(35,5); textcolor(YELLOW); cprintf(" AGRAGAMI"); gotoxy(30,7); textcolor(WHITE); cprintf("Hindi Font Convertor"); gotoxy(2,9); textbackground(RED); textcolor(YELLOW); cprintf("-----------------------------------------------------------------------------"); for(int i=0;i<=10;i++) {gotoxy(2,10+i); textbackground(BLACK); textcolor(YELLOW); cprintf(" ");} textbackground(RED);gotoxy(2,21); textcolor(YELLOW); cprintf("-----------------------------------------------------------------------------"); textbackground(GREEN); gotoxy(68,23); textcolor(YELLOW); cprintf("ESC. "); textcolor(WHITE); cprintf("Close"); char menu[10][100],menuh[10][100]; strcpy(menu[1],"1 => Retrieving Data. "); strcpy(menuh[1],"Press [Enter] to continue..."); strcpy(menu[2],"2 => Select Input File Font. "); strcpy(menuh[2],"Choose input file font. "); strcpy(menu[3],"3 => Select Output File Font."); strcpy(menuh[3],"Choose output file font. "); strcpy(menu[4],"4 => Convert Data. "); strcpy(menuh[4],"Converting Data. "); strcpy(menu[5],"5 => Show Converted Data. "); strcpy(menuh[5]," "); for(i=1;i<=5;i++) { textbackground(BLACK); textcolor(WHITE); lowvideo(); if(i==l) { highvideo(); gotoxy(4,23); textbackground(GREEN); cprintf(menuh[i]); textbackground(BLUE); } gotoxy(4,9+2*i); cprintf(menu[i]); } normvideo(); }
void BOX::textbox(const string &msg) const { textcolor(color); textbackground(bgcolor); highvideo(); draw_box(); cout << setxy(left+2, top+1) << msg; normvideo(); }
static JSBool js_conio_normvideo(JSContext *cx, uintN argc, jsval *arglist) { jsrefcount rc; rc=JS_SUSPENDREQUEST(cx); normvideo(); JS_SET_RVAL(cx, arglist, JSVAL_TRUE); JS_RESUMEREQUEST(cx, rc); return(JS_TRUE); }
static TUI_MENU_CALLBACK(quit_callback) { if (been_activated) { _setcursortype(_NORMALCURSOR); normvideo(); clrscr(); file_system_detach_disk(-1); exit(0); } return NULL; }
static inline void D_Titlebar(char *title1, char *title2) { // SRB2 banner clrscr(); textattr((BLUE<<4)+WHITE); clreol(); cputs(title1); // standard srb2 banner textattr((RED<<4)+WHITE); clreol(); gotoxy((80-strlen(title2))/2, 2); cputs(title2); normvideo(); gotoxy(1,3); }
int main(int argc, char *argv[]) { char cad[80]; char destin[4096]; int i; clrscr(); textbackground(BLUE); textcolor(YELLOW); clrscr(); getch(); window(2,2,77,22); textbackground(RED); textcolor(LIGHTBLUE); clrscr(); gotoxy(1,3); cprintf("Prueba"); getch(); window(3,3,76,21); textbackground(LIGHTBLUE); textcolor(CYAN); clrscr(); gotoxy(1,3); cputs("Otra prueba"); for(i = 0; i < 100; i++) cputs("111"); highvideo(); for(i = 0; i < 100; i++) cputs("222"); lowvideo(); for(i = 0; i < 100; i++) cputs("333"); highvideo(); for(i = 0; i < 100; i++) cputs("444"); lowvideo(); for(i = 0; i < 100; i++) cputs("555"); highvideo(); for(i = 0; i < 100; i++) cputs("666"); getch(); gotoxy(10, 12); cputs("aqui"); getch(); delline(); getch(); gotoxy(10, 1); cputs("aqui"); getch(); delline(); getch(); gotoxy(10, 15); cputs("aqui"); getch(); delline(); getch(); normvideo(); for(i = 0; i < 500; i++) putch('*'); getch(); gotoxy(10, 4); cputs("aqui"); getch(); insline(); cputs("insertada"); getch(); gotoxy(1, 7); cputs("Leer una cadena: "); cad[0]=10; cgets(cad); gotoxy(1, 8); cprintf("caracteres leidos: %d, cadena %s #relleno relleno relleno " "relleno###########################", (int)cad[1], &cad[2]); clreol(); getch(); strcpy(cad, getpass("clave: ")); cprintf("clave leida: %s", cad); getch(); gettext(2, 2, 74, 19, destin); clrscr(); getch(); puttext(1, 1, 73, 18, destin); getch(); textbackground(BLUE); textcolor(WHITE); window(10,10,15,15); getch(); normvideo(); textcolor(WHITE); textbackground(BLACK); window(1,1,80,25); gotoxy(1,1); return 0; }