From 0f994b1b09c1dddd2d48c479dd025e71a674fd31 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 12 Oct 2013 03:18:44 +0200 Subject: aux/statusbar: emit final newline in textmode when finished bad: term% echo 1 1 | aux/statusbar -t x |###########################################################| 100% term% vs. good: term% echo 1 1 | aux/statusbar -t x |###########################################################| 100% term% --- sys/src/cmd/aux/statusbar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/src') diff --git a/sys/src/cmd/aux/statusbar.c b/sys/src/cmd/aux/statusbar.c index 1a6af95bb..be3314af1 100644 --- a/sys/src/cmd/aux/statusbar.c +++ b/sys/src/cmd/aux/statusbar.c @@ -152,7 +152,10 @@ bar(Biobuf *b) d = strtoll(f[1], 0, 0); drawbar(); } - postnote(PNPROC, child, "kill"); + if(textmode) + write(1, "\n", 1); + else + postnote(PNPROC, child, "kill"); } -- cgit v1.2.3