#include #include char* readln() { char* str = malloc(128); scanf("%127s", str); return str; } void print(char *str) { fputs(str, stdout); } void termpos(int x, int y) { printf("\x1b[%d;%dH", x, y); }