Esempio n. 1
0
void SystemWindow::outputToSystemMessages(string data)
{
     linesNr++;
     _Setbk bgColor;
     _setcursortype(_NORMALCURSOR);
     bgColor.color = RED;
     cout << bgColor;
     cout << setclr(WHITE);
   
   if (linesNr > 6)
   {
      gotoxy(2, 19);
      delline();
      gotoxy(1, 24);
      insline();     
      cout << "|";
      gotoxy(80, 24);
      cout << "|";
      gotoxy(2, 24);
   } 
   else 
   {
      gotoxy(2, 18 + linesNr);
   }
   cout << data;
}
Esempio n. 2
0
	void flamesalgo(char a[25],char b[25])
	{
	int size=0;
	int l=strlen(a);
	int m=strlen(b);
	for (int i=0; i<l; i++)
	{
		for (int j=0; j<m; j++)
		{
			if (a[i]==b[j])
			{
			a[i]='\0';
			b[j]='\0';
			}
		}
	}

	for (i=0; i<l; i++)
	{
		if (a[i]!='\0'&&a[i]!=' ')
		size++;
	}

	for (int j=0; j<m; j++)
	{
		if (b[j]!='\0'&&b[j]!=' ')
		size++;
	}

	cout<<endl;
	_setcursortype(_NOCURSOR);
	cout<<"Wait for the processing";
	delay(920);
	cprintf(".");
	delay(920);
	cprintf(".");
	delay(920);
	cprintf(".");
	delay(920);
	cprintf(".");
	delay(920);
	_setcursortype(_NORMALCURSOR);
	cout<<"\nThe relationship between you and your crush is ";
	flamesresult(size);

	}
Esempio n. 3
0
int CheckDrive(int drive, char *msg) {
   int save, disk = toupper(drive)-'A';
   char s[81];
   save = getdisk();
   setdisk(disk);
   if (disk != getdisk()) {
      _setcursortype(_NOCURSOR);
      printf("%c", 7);
      sprintf(s, "%s...Press any key to continue...", msg);
      descr(s);
      getch();
      _setcursortype(_NORMALCURSOR);
      descr(NULL);
      return(2);
   }
   setdisk(save);
   return(1);
}
Esempio n. 4
0
void Tabuleiro::Draw (void) {
  int i,j;

  clrscr ();
  _setcursortype (_NOCURSOR);
  for (i=0; i<8; i++)
    for (j=0; j<8; j++)
      DrawOne (i,j,tab[i][j]);
}
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 show_message()
	{
	char *mess[]={"-","=","["," ","3","D","-","T","r","a","n","s",
		      "f","o","r","m","a","t","i","o","n"," ","]","=","-"};
	int xx=28,xxx=52,i,j;
	_setcursortype(_NOCURSOR);
	for(i=0,j=24;i<15,j>=12;i++,j--)
		{
		gotoxy(xx,1);
		cout<<mess[i];
		xx++;
		gotoxy(xxx,1);
		cout<<mess[j];
		xxx--;
		delay(50);
		}
	_setcursortype(_NORMALCURSOR);
	}
void main()
{
textbackground(BLUE);
clrscr();
_setcursortype(_NOCURSOR);
message(20,8,4," ", " "," Agragami Installed Successfully. "," "," ","OK",RED,WHITE,YELLOW);
getch();
remove("temp.exe");
}
Esempio n. 8
0
Boolean jvg_message(char *title, char *msg){
 int x, y, h = 5, w, i, len, m, bb, bf;
 Boolean ret = False;
 w = 20 + strlen(title);
 len = 5;
 for(i = 0; i < strlen(msg); i++){
  if((msg[i] == '\n')&&(msg[i+1] == '\r')){
   h++;
   len = 0;
   i++;
  }
  if(len > w) w = len;
  len++;
 }
 x = (80 - w) / 2;
 y = (50 - h) / 2;
 guardar_estado();
 guardar_ventana();
 bf = JVGmarcf;
 bb = JVGmarcb;
 m = JVGmarco;
 m_borde(14);
 m_fondo(1);
 ajustarmarco(MARCO_DOBLE);
 gettext(x, y, x + w - 1, y + h - 1, JVGbuffer);
 marco(x, y, x + w - 1,y + h - 1);
 _setcursortype(_NOCURSOR);
 gotoxy(x + 1, y);
 cputs("(ž)");
 cputs(title);
 window(x + 2, y + 1, x + w, y + h - 2);
 cputs("\n\r");
 cputs(msg);
 restaurar_ventana();
 gotoxy(x + w/2 - 10, y + h - 2);
 m_borde(bb);
 m_fondo(bf);
 ajustarmarco(m);
 ret = aceptar_cancelar();
 _setcursortype(_NORMALCURSOR);
 restaurar_colores();
 puttext(x, y, x + w - 1, y + h - 1, JVGbuffer);
 return ret;
}
Esempio n. 9
0
void errormsg(char *title, char *msg){
 int h = 3, w, i, len, bb, bf, m, x, y;
 w = 6 + strlen(title);
 len = 3;
 for(i = 0; i < strlen(msg); i++){
  if((msg[i] == '\n')&&(msg[i+1] == '\r')){
   h++;
   len = 0;
   i++;
  }
  if(len > w) w = len;
  len++;
 }
 x = (80 - w) / 2;
 y = (50 - h) / 2;
 guardar_estado();
 guardar_ventana();
 bf = JVGmarcf;
 bb = JVGmarcb;
 m = JVGmarco;
 m_borde(15);
 m_fondo(4);
 ajustarmarco(MARCO_DOBLE);
 gettext(x, y, x + w - 1, y + h - 1, JVGbuffer);
 marco(x, y, x + w - 1,y + h - 1);
 _setcursortype(_NOCURSOR);
 m_borde(bb);
 m_fondo(bf);
 gotoxy(x + 1, y);
 cputs("(ž)");
 cputs(title);
 window(x + 1, y + 1, x + w, y + h);
 textcolor(15);
 textbackground(4);
 cputs(msg);
 error_snd();
 getch();
 _setcursortype(_NORMALCURSOR);
 restaurar_ventana();
 restaurar_colores();
 puttext(x, y, x + w - 1, y + h - 1, JVGbuffer);
 ajustarmarco(m);
}
Esempio n. 10
0
main(void)
{
	unidad_actual = getdisk();
	_setcursortype(_NOCURSOR);
	dibujar_pantalla();
//	verificar_disco();
//	pedir_unidad();
//	verificar_espacio();
	disque_instalar();
	return 0;
}
Esempio n. 11
0
void salir(void) {
	textmode(C80);
	textbackground(BLACK);
	textcolor(LIGHTGRAY);
	clrscr();
	puts("DPA Software. 1997");
	puts("Jairo Alejandro Duarte Avenda¤o.");
	_setcursortype(_NORMALCURSOR); /* mostrar de nuevo el cursor */
	nosound();
	exit(0);
}
Esempio n. 12
0
/*------------------------------------------------------------------------*/
int main()
{
  int ok;

  read_config();
  _set_screen_lines(25);
  _setcursortype(_NOCURSOR);

  Screen("Joystick configuration utility for Atari 800 emulator",BACKGROUND+TITLE);
  ok=mainmenu();

  window(1,1,80,25);
  textattr(0xf);
  clrscr();
  _setcursortype(_NORMALCURSOR);

  if (ok) save_config();

  return 0;
}
Esempio n. 13
0
void mainframe()
{
char d;
textbackground(BLACK);
textcolor(RED);
_setcursortype(0);
clrscr();
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                        Master COMMAND.COM ver 1.0                           �");
cprintf(" �                                                                             �");
cprintf(" �                            It's a KVSM Product                              �");
cprintf(" �                        -----------------------------                        �");
cprintf(" �����������������������������������������������������������������������������ͼ");
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                                                                             �");
cprintf(" �                                                                             �");
cprintf(" �                 1. Change Commands                                          �");
cprintf(" �                                                                             �");
cprintf(" �                 2. Help                                                     �");
cprintf(" �                                                                             �");
cprintf(" �                 3. About                                                    �");
cprintf(" �                                                                             �");
cprintf(" �                 4. Exit                                                     �");
cprintf(" �                                                                             �");
cprintf(" �                                                 press any key(1,2,3,4)      �");
cprintf(" �����������������������������������������������������������������������������ͼ");
cprintf(" �����������������������������������������������������������������������������ͻ");
cprintf(" �                               DEVELOPED BY                                  �");
cprintf(" �                                                                             �");
cprintf(" �                            MANOHAR SINGH NEGI                               �");
cprintf(" �����������������������������������������������������������������������������ͼ");
scanf("%c",&d);
switch(d)
{
case '1':
	mani();
	mainframe();
	break;
case '2':
	frame2();
	break;
case '3':
	frameabout();
	break;
case '4':
	exit(1);
default:
	clrscr();
	cprintf("Please enter the valid choice");
	delay(300);
	mainframe();
}
}
Esempio n. 14
0
static TUI_MENU_CALLBACK(quit_callback)
{
    if (been_activated) {
        _setcursortype(_NORMALCURSOR);
        normvideo();
        clrscr();
        file_system_detach_disk(-1);
        exit(0);
    }

    return NULL;
}
Esempio n. 15
0
main(void)
{
	unidad_actual = getdisk();
	_setcursortype(_NOCURSOR);
	dibujar_pantalla();
	verificar_disco();
	pedir_unidad();
	verificar_espacio();
	disque_instalar();
	escribir_mensajes();
	dibujar_pantalla();
	ventana(8,11,72,15);
	centrar("El programa de instalaci¢n ha finalizado.", 13);
	delay(3000);
	textcolor(LIGHTGRAY);
	textbackground(BLACK);
	clrscr();
	puts ("DPA Software.");
	_setcursortype(_NORMALCURSOR);
	return 0;
}
Esempio n. 16
0
void main()
{
_setcursortype(_NOCURSOR);
textcolor(7);
clrscr();
snake s;
s.firstscreen();
s.speedselect();
loading();
s.gamescreen();
s.game();
}
Esempio n. 17
0
void office::of_beg()
{
	int i, v;
	do{
	textbackground(BLUE);
	textcolor(CYAN);
	_setcursortype(_NORMALCURSOR);
	clrscr();
	for(i=0;i<10;++i)
	{
		box(1+7*i,1+2*i,4,4);
		delay(80);
		box(1+7*i,1+2*i,4,4,int(' '));
	}
	box(74,22,4,4);
	gotoxy(25,2);
	textcolor(GREEN);
	cputs("WELCOME TO CREEPER OFFICE...");
	gotoxy(6,6);
	textcolor(CYAN);
	cout<<"1. CALCULATOR";
	gotoxy(6,12);
	cout<<"0. MAIN MENU";
	gotoxy(6,8);
	cout<<"2. CREEPER FILE EXPERT ";
	gotoxy(6,10);
	cout<<"3. CALENDAR ";
	gotoxy(25,22);
	cout<<"ENTER THE CHOICE NUMBER : ";
	v=int(getche()-48);
	delay(100);
	if(v)
	{ switch(v)
	 {
		case 1:
			calc();
			break;
		case 2:
		      class	File a;
			break;
		case 3:
			calendar();
			break;
		default:
			gotoxy(55,22);
			cputs("INVALID ENTRY");
			delay(1000);
			break;
	 }
	}
       }while(v!=0);
}
Esempio n. 18
0
int main() {
	char escolha;
	int maior_ponto[3], nomes[3][22], pontos[]={0,0,0};
	//textbackground(3);
	
	_setcursortype(_NOCURSOR);
		gotoxy(35,13);printf("Wait...");
		_sleep(1500);
	do{
		
	
		system("cls");
		cabecalho();
		_setcursortype(_NOCURSOR);	
		gotoxy(8,7);printf("Play");
		gotoxy(8,9);printf("Ranking");
		gotoxy(30,22);printf(" Use as setas[ %c ]/ R - resetar/ ESC - sair", 23);
		gotoxy(2,23);printf("%c 2014. Developed by Wender Mariano ",184);
		gotoxy(78,23);
		
		escolha = cursor_escolha(5,7,5,9); // retorna '1' ou '2', ESC ou ENTER;
		 
		 switch(escolha){
		 	case '1':play(nomes,pontos);break;
		 	case '2':ranking(nomes,pontos);
		 }	
		if(escolha == ESC){
			gotoxy(20,15);
			printf("Voce tem certeza que deseja sair?(S/N)");
			gotoxy(78,23);
			do{
				escolha = toupper(getch());
			}while(escolha != 'N' && escolha != 'S' && escolha != ESC);
		}
				
	}while(escolha != 'S' && escolha != ESC);
	system("cls");
	return 0;
}
Esempio n. 19
0
void MainScreen(char *InstallName) {
   char fromdrive[2], todrive[3], tmp1[3], topath[9], tmp[9], drive[2];
   EditClass EditToDrive(WINDOW_LEFT+26,WINDOW_TOP+3,1, DEF_DRIVE);
   EditClass EditPath(WINDOW_LEFT+32,WINDOW_TOP+4,8, DEF_DIRECTORY);
   char ok;

   sprintf(fromdrive, "%c", getdisk()+'A');
   strcpy(todrive, "C");
   strcpy(tmp, "\\EDIR");
   _setcursortype(_NORMALCURSOR);
   putxy(WINDOW_LEFT+3,WINDOW_TOP+2,0,STANDARD,"Installing from drive %c:", fromdrive[0]);
   putxy(WINDOW_LEFT+3,WINDOW_TOP+3,0,STANDARD,"Install to what drive?  :");
   putxy(WINDOW_LEFT+3,WINDOW_TOP+4,0,STANDARD,"Install to what directory?  :", topath);
   EditToDrive.Display();
   EditPath.Display();
   putxy(WINDOW_LEFT+30, WINDOW_TOP+4, 0, STANDARD, "%c", toupper(todrive[0]));
   strcpy(todrive, EditToDrive.GetInput());
   putxy(WINDOW_LEFT+30, WINDOW_TOP+4, 0, STANDARD, "%c", toupper(todrive[0]));
   strcpy(tmp, EditPath.GetInput());
   descr(NULL);
   sprintf(topath, "%c:%s", todrive[0], tmp);
   putxy(WINDOW_LEFT+3,WINDOW_TOP+5,0,STANDARD,"Is this ok (Y/N/Q)? ");
   ok = (int) tolower((char) getch());
   if(ok == 121) {
      if(CheckDrive(todrive[0], "Invalid disk drive to copy files to") == 1) {
	 _setcursortype(_NOCURSOR);
	 putxy(WINDOW_LEFT+3,WINDOW_TOP+5,0,STANDARD,"Please wait...installing files...");
	 sprintf(tmp1, "%c:", fromdrive[0]);
	 docopy(tmp1, topath, InstallName);
	 getch();
      }
      else MainScreen(InstallName);
   }
   else if(ok == 113);
   else {
      putxy(WINDOW_LEFT+3,WINDOW_TOP+5,0,STANDARD,"%s", space(20));
      MainScreen(InstallName);
   }
}
Esempio n. 20
0
void mani()
{
int ch=1;
char original[9],newcom[9];
textbackground(RED);
textcolor(WHITE);
_setcursortype(1);

loop:
while(ch)
{
		fp=fopen("C:\\windows\\command.com","rb+");
		clrscr();
		if(fp==NULL)
		{
		fp=fopen("c:\\command.com","rb+");
		clrscr();
		if(fp==NULL)
		{
		fp=fopen("c:\\windows\\system32\\command.com","rb+");
		clrscr();
		if(fp==NULL)
		{
		puts("Error opening file");
		puts("\nPress any key to exit");
		getche();
		exit(0);
		}
		}
		}
		gotoxy(100,200);
		printf("\n\n\nEnter the Dos command to change ?( For ex.  DIR )\n\n");
		scanf("%s",original);
		gotoxy(100,210);
		printf("\nEnter the new command name of the same length \n\n");
		scanf("%s",newcom);
		if(strlen(original)!=strlen(newcom))
		{
		printf("\tEnter an alternative of same length\n");
		delay(100);
		goto loop;
		}
		strupr(original);
		strupr(newcom);
		findreplace(original,newcom);
		fclose(fp);
gotoxy(200,300);
printf("\nDo you want to change other commands ?\n\nPress 1 or 0 \n");
scanf("%d",&ch);
}
}
Esempio n. 21
0
	void reet()
	{
	textcolor(7);
	clrscr();
	textcolor(7);
	gotoxy(1,25);
	_setcursortype(_NOCURSOR);
	cout<<"\n\n\nThanks for playing the game!!!\t\t\t\t\tCREATED BY ";
	int o=color();
	textcolor(o);
	cprintf("Reet Awwsum");
	getch();
	exit(0);
	}
Esempio n. 22
0
/* Muestra un mensaje de error y termina el programa */
void error(char *texto)
{
	dibujar_pantalla(); /* borrar pantalla */
	ventana(8,11,72,15);
	textcolor(RED);
	centrar(texto, 13);
	getch();
	textcolor(LIGHTGRAY);
	textbackground(BLACK);
	clrscr();
	puts ("DPA Software.");
	_setcursortype(_NORMALCURSOR);
	exit(1);
}
Esempio n. 23
0
static int conio_end_graphics(caca_display_t *dp)
{
    _wscroll = 1;
    textcolor((enum COLORS)WHITE);
    textbackground((enum COLORS)BLACK);
    gotoxy(caca_get_canvas_width(dp->cv), caca_get_canvas_height(dp->cv));
    cputs("\r\n");
    _setcursortype(_NORMALCURSOR);

    free(dp->drv.p->screen);
    free(dp->drv.p);

    return 0;
}
Esempio n. 24
0
void display_dos_end()
{
    __dpmi_regs r;
    /* Restore video mode */
    r.x.ax = 0x1202;
    r.h.bl = 0x30;
    __dpmi_int(0x10, &r);
    r.x.ax = 0x0003;
    __dpmi_int(0x10, &r);
    /* Restore cursor */
    _setcursortype(_NORMALCURSOR);
    /* Restore keyboard handler */
    _go32_dpmi_set_protected_mode_interrupt_vector(KBD_INT, &old_kb_handler);
}
Esempio n. 25
0
//Setup game: resources, variables and data structure
void Initialize()
{
	int i;

	//Initialize random numbers
	mt_init_genrand(13);
	//Text mode 80x50
	textmode(C4350);
	//Hide cursor
	_setcursortype(_NOCURSOR);

	// Player initial position at screen = (80/2=40,42)
	//
	// -	 1st line
	// o 2nd -> c[0]
	// o
	// ...
	// o 42th -> c[40]
	// ...
	// o 49th
	// -	 50th line

	x =        40;
	x_prev =    x;
	road[40] = 40;
	meters =    0;
	speed =     1;
	lifes =     3;

	//Setup road
	for(i=39;i>=0;i--)
	{
		road[i] = road[i+1] + Random();

		if(road[i]<MIN)		 road[i] = MIN;
		else if(road[i]>MAX) road[i] = MAX;
	}
	//-- TODO:BOTTOM PART OF the road
	for(i=49;i>40;i--)
	{
		road[i] = road[i+1]+ Random();
		if(road[i]<MIN)		 road[i] = MIN;
		else if(road[i]>MAX) road[i] = MAX;
	}

	//--

	begin = true;
}
Esempio n. 26
0
void loadsound(unsigned f[], unsigned t[], int n){
 int i;
 char filename[80];
 FILE *snd;
 gotoxy(1,1);
 cprintf("Archivo: ");
 _setcursortype(_NORMALCURSOR);
 gets(filename);
 _setcursortype(_NOCURSOR);
 snd = fopen(filename, "rt");
 if(snd == NULL){
  textcolor(4 + BLINK);
  gotoxy(1,1);
  cprintf("Archivo no existe!!");
  delay(100);
  textcolor(7);
  printchars(' ', 79);
  return;
 }
 for(i = 0; i < n; i++) fscanf(snd, "%u %u\n", &f[i], &t[i]);
 fclose(snd);
 gotoxy(1,1);
 printchars(' ', 79);
}
Esempio n. 27
0
File: spox.c Progetto: schmied/swf
struct spox *spox_init(const int width, const int height, const int interval, const int bright) {
	struct spox *s;
#ifdef CURSES
	WINDOW *win;
#endif
#ifdef CONIO
	struct text_info *r;
#endif

	s = (struct spox*) malloc(sizeof (struct spox));
	if (!s)
		return NULL;
#ifdef CURSES
	win = initscr();
	if (!win)
		return NULL;
	nodelay(win, 1);
	getmaxyx(win, s->scr_height, s->scr_width);
#endif
#ifdef CONIO
	r = NULL;
	textmode(BW80);
	_setcursortype(_NOCURSOR);
	gotoxy(3, 3);
	cputs("press <alt> + <enter> for full screen");
	sleep(3);
	gettextinfo(r);
	s->scr_width = (int) r->screenwidth;
	s->scr_height = (int) r->screenheight;
#endif
	s->win_width = s->scr_width;
	s->win_height = s->scr_height;
	s->offset_x = 0;
	s->offset_y = 0;
	if (width < s->scr_width && width > 8) {
		s->win_width = width;
		s->offset_x = (s->win_width - width) / 2;
	}
	if (height < s->scr_height && height > 8) {
		s->win_height = height;
		s->offset_y = (s->win_height - height) / 2;
	}
	s->img_width = s->win_width * PPW;
	s->img_height = s->win_height * PPH;
	s->bright = bright;
	s->interval = interval;
	return s;
}
Esempio n. 28
0
void funccall::wel()

{
	 clrscr();
	_setcursortype(_NOCURSOR);
	textbackground(BLUE);
	textcolor(GREEN);


	fstream f("c:/creeper/sys/wel.txt",ios::in);

	//checking opening...................................
	if(!f)
	{
	    cout<<"\n\n\n\n\n\n\t\t****SYSTEM ERROR**CAN NOT OPEN WEL.TXT****\n\n\t\t****contact software technical expert*****";
	    getch();
	    return;
	}

	//**********************************************

	 char ch, st[100]="\0";
	 int i=0, x=25 ,y[]={22,20,3,19,4,18,5,17,6,16,7,15,8,14,9,13,10};

	 f.get(ch);
	   clrscr();
	  box(78,23,2,2,1);
	 while(f)
	 {
		for(int j=0; j<17;++j)
		{
			gotoxy(x,y[j]);
			cout<<ch;
			delay(17);
			gotoxy(x,y[j]);
			cout<<" ";
		}
		gotoxy(x,10);
		cout<<ch;
		x++;
		st[i++]=ch;
		st[i]='\0';
		f.get(ch);
	 }

	 f.close();
	 delay(2000);
}
Esempio n. 29
0
void term_exit()                     /* close down the screen */
{
   textattr(norm_attrib);

   if (saved_lines != screen_h) {
      _set_screen_lines(saved_lines);
      cls();
   }
   else {
      goto2(0,screen_h-1);
      putch('\n');
   }

   _setcursortype(_NORMALCURSOR);
   show_c();
}
Esempio n. 30
0
void display(){
	_setcursortype(_NOCURSOR);
	constream cout;
	for(int j=2; j<=23; j++){
		for(int k=2; k<=78; k++){
			gotoxy(k,j);
			if(selection == 1)cout<<setclr(random(15)+1);
			cout<<screen[j-2][k-2];
			cout<<setclr(WHITE);
			//cprintf();

		}
	}
	gotoxy(67,25);
	cout<<"[Score:"<<score<<"]";
}