14 lines
185 B
C
14 lines
185 B
C
#include <stdio.h>
|
|
#include "ansi.h"
|
|
|
|
void clrscr() {
|
|
printf("\033[2J\033[1;1H");
|
|
}
|
|
|
|
void clrline() {
|
|
printf("\033[1K");
|
|
}
|
|
|
|
void gotoxy(int x, int y) {
|
|
printf("\033[%d;%dH", y, x);
|
|
} |