20 printf(
"\e[1;1H\e[2J");
34 case WHITE : strcpy(esc,
"0;00");
36 case RED : strcpy(esc,
"1;31");
38 case GREEN : strcpy(esc,
"1;32");
40 case YELLOW: strcpy(esc,
"1;33");
42 case BLUE : strcpy(esc,
"1;34");
44 case CYAN : strcpy(esc,
"1;36");
47 printf(
"%c[%sm",27,esc);
58 printf(
"%c[%d;%dH",27,row,col);
void setColor(Color c)
Set text color in terminal by printing an escape sequence.
Utitlies for advanced input and output to terminal screen.
void locateCursor(const int row, const int col)
Set cursor position to given coordinates in the terminal window.
void clearScreen()
Clear terminal screen by printing an escape sequence.