aboutsummaryrefslogtreecommitdiff
path: root/rin.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 14:20:11 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 14:20:31 +0200
commit31a3bbafb41b3696077881b779f94d6f4cafb436 (patch)
treea13de971620ec5f750cbc2fd1475db5b025c47f3 /rin.c
parent7aca3e73faeb306b62edfb41e8459cdcdfe619dd (diff)
downloadrtty-31a3bbafb41b3696077881b779f94d6f4cafb436.tar.gz
rin.c: Add refreshes
Diffstat (limited to 'rin.c')
-rw-r--r--rin.c6
1 files changed, 5 insertions, 1 deletions
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();
+ }
}
}