From 31a3bbafb41b3696077881b779f94d6f4cafb436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 14:20:11 +0200 Subject: rin.c: Add refreshes --- rin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rin.c') diff --git a/rin.c b/rin.c index fe32cdb..6af10b8 100644 --- a/rin.c +++ b/rin.c @@ -37,6 +37,7 @@ main() nout = read(out, bufout, MAXBUF); bufout[nout+1] = 0; printw("%s", bufout); + refresh(); startx = -1; } @@ -49,6 +50,7 @@ main() reset: bufin[0] = nin = 0; y = getcury(w); move(y, startx); + refresh(); continue; } @@ -58,8 +60,10 @@ reset: bufin[0] = nin = 0; bufin[nin] = 0; dprintf(in, "%s", bufin); goto reset; - }else + }else{ printw("%c", c); + refresh(); + } } } -- cgit v1.2.3