aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-29 22:13:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-29 22:13:27 -0700
commit95c47d4172d5c14d87fad72a28e566544e72b591 (patch)
treed84b09755b126ad31f6f07374aabc6d4f3f836d1 /pw.c
parentae7ceffbe451a6264edf7d1354cc9d55df8940b9 (diff)
downloadpw-95c47d4172d5c14d87fad72a28e566544e72b591.tar.gz
pw-95c47d4172d5c14d87fad72a28e566544e72b591.tar.bz2
pw-95c47d4172d5c14d87fad72a28e566544e72b591.zip
Status line reliably gone on 'q' exit.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pw.c b/pw.c
index e3a2b0a..be72687 100644
--- a/pw.c
+++ b/pw.c
@@ -824,8 +824,6 @@ int main(int argc, char **argv)
switch (ch) {
case 'q': case 3:
kbd_state = kbd_exit;
- clrline();
- fflush(stdout);
break;
case 'h':
if (hpos >= 8) {
@@ -1058,7 +1056,7 @@ int main(int argc, char **argv)
}
}
}
-
+ clrline();
ttyset(ttyfd, &tty_saved);
return exit_status;
}