Compare commits
No commits in common. "master" and "UIDemo1" have entirely different histories.
1 changed files with 4 additions and 6 deletions
10
main.c
10
main.c
|
@ -20,8 +20,7 @@ char xpos=0, ypos=0;
|
||||||
struct termios orig_termios;
|
struct termios orig_termios;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
clear();
|
|
||||||
enableRawMode();
|
enableRawMode();
|
||||||
|
|
||||||
char c;
|
char c;
|
||||||
|
@ -69,10 +68,9 @@ int main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawWin() {
|
void drawWin() {
|
||||||
//clear();
|
clear();
|
||||||
gotoxy(1, 1);
|
|
||||||
printf("Kaari - Binarier font editor\r\n");
|
printf("Kaari - Binarier font editor\r\n");
|
||||||
printf("+--------+ Char \"%c\" / %d / 0x%X \r\n", currchar, currchar, currchar);
|
printf("+--------+\r\n");
|
||||||
|
|
||||||
int cstart=32;
|
int cstart=32;
|
||||||
int cperline=16;
|
int cperline=16;
|
||||||
|
@ -89,7 +87,7 @@ void drawWin() {
|
||||||
printf("\r\n");
|
printf("\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("+--------+\r\nArrows:Move PgUP/DWN:Char Q:Quit");
|
printf("+--------+\r\nQ:Quit PgUP/DWN:Switch char\r\n");
|
||||||
|
|
||||||
resetCurPos();
|
resetCurPos();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue