diff --git a/README.md b/README.md index ce2393e..fd2a61b 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,4 @@ change cursor pos - w q add - space +pause - p diff --git a/main.c b/main.c index 6cf091f..6cbe6ed 100644 --- a/main.c +++ b/main.c @@ -35,6 +35,7 @@ int main(void) { die("malloc returned NULL"); initscr(); + noecho(); timeout(0); curs_set(0); @@ -88,6 +89,13 @@ int main(void) { cursor--; break; + case 'p': + timeout(-1); + getch(); + timeout(0); + clear(); + break; + case 'q': die("Succesfull exit");