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:
parent
ab7fe19ae2
commit
0f994b1b09
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue