Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
293e242742 |
1 changed files with 6 additions and 4 deletions
10
main.c
10
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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue