diff --git a/main.c b/main.c index 1978626..48738c1 100644 --- a/main.c +++ b/main.c @@ -20,7 +20,8 @@ char xpos=0, ypos=0; struct termios orig_termios; int main() { - + + clear(); enableRawMode(); char c; @@ -68,9 +69,10 @@ int main() { } void drawWin() { - clear(); + //clear(); + gotoxy(1, 1); printf("Kaari - Binarier font editor\r\n"); - printf("+--------+\r\n"); + printf("+--------+ Char \"%c\" / %d / 0x%X \r\n", currchar, currchar, currchar); int cstart=32; int cperline=16; @@ -87,7 +89,7 @@ void drawWin() { printf("\r\n"); } - printf("+--------+\r\nQ:Quit PgUP/DWN:Switch char\r\n"); + printf("+--------+\r\nArrows:Move PgUP/DWN:Char Q:Quit"); resetCurPos();