From 293e24274227de4d14a3c3538e7eda5ad386a3fb Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Fri, 17 Jan 2025 13:10:02 +0200 Subject: [PATCH] Minor changes --- main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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();