diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-03-10 13:06:29 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-03-14 11:47:19 +0100 |
commit | 915f4ac6d9ae239bd1aef47892075d019ec8b581 (patch) | |
tree | 8b8b31716dfc877aff45e8d1c4d9e7d0df3618a2 /apt-pkg/install-progress.cc | |
parent | 12f40394b3940573c0e63d74722a95148fb1ad39 (diff) |
flush line-clearing on progress stop before post-invoke
All other interactions with std::cout are flushed directly, just in the
stop case we hadn't done it – no problem expect if there is still output
coming after apt is done like in the case of a post-invoke script
producing output.
Closes: 793672
Diffstat (limited to 'apt-pkg/install-progress.cc')
-rw-r--r-- | apt-pkg/install-progress.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/install-progress.cc b/apt-pkg/install-progress.cc index 14409e301..f1a9f42dc 100644 --- a/apt-pkg/install-progress.cc +++ b/apt-pkg/install-progress.cc @@ -333,6 +333,7 @@ void PackageManagerFancy::Stop() // override the progress line (sledgehammer) static const char* clear_screen_below_cursor = "\033[J"; std::cout << clear_screen_below_cursor; + std::flush(std::cout); } child_pty = -1; } |