From 95c47d4172d5c14d87fad72a28e566544e72b591 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 29 Apr 2022 22:13:27 -0700 Subject: Status line reliably gone on 'q' exit. --- pw.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3