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%
This commit is contained in:
cinap_lenrek 2013-10-12 03:18:44 +02:00
parent ab7fe19ae2
commit 0f994b1b09

View file

@ -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");
}