-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.c
More file actions
26 lines (26 loc) · 1.19 KB
/
Copy pathdisplay.c
File metadata and controls
26 lines (26 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "var.h"
#define H "\033[1B\033[1D"
#include "display.h"
void display()
{
#ifdef WIN32
system("cls");
#else
system("clear");
#endif
printf(" ");
for(int i=0;i<SIZE;i++)printf("%d%s",i,i<10?" ":" ");
arr[0][0]=arr[0][SIZE-1]=arr[SIZE-1][0]=arr[SIZE-1][SIZE-1]=' ';
printf("\n");
for (int i = 0; i < SIZE; i++)
{
printf("%d%s",i,i<10?" ":" ");
print(arr[i]);
printf("\n\n");
}
printf("\033[31m\0337\033[%d;%dH-------------------------------------------------------------------------------------\0338\033[0m",3,8);
printf("\033[31m\0337\033[%d;%dH-------------------------------------------------------------------------------------\0338\033[0m",47,8);
printf("\033[34m\0337\033[%d;%dH"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|""\0338\033[0m",3,7);
printf("\033[34m\0337\033[%d;%dH"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|"H"|""\0338\033[0m",3,95);
return;
}