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