Added pause feature. Added cursor + cursor position overlay element.

This commit is contained in:
Sheldon Lee 2020-06-23 02:36:44 +01:00
parent 30227eef56
commit 3b8ed228d5

2
main.c
View File

@ -96,7 +96,9 @@ void showLastPressed(char ch)
void showCurPos() void showCurPos()
{ {
attron(COLOR_PAIR(2));
mvprintw(1, 0, "curpos: %i, %i", cursor.x, cursor.y); mvprintw(1, 0, "curpos: %i, %i", cursor.x, cursor.y);
attroff(COLOR_PAIR(2));
} }
void handleInput(char ch) void handleInput(char ch)