From 324399c1255723f9f3cf1c3ce347c989c10c7fb1 Mon Sep 17 00:00:00 2001 From: 8nlight <8nlight@disroot.org> Date: Fri, 15 Sep 2023 10:02:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + main.c | 8 ++++++++ 2 files changed, 9 insertions(+) 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");