]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/install-progress.cc
show globalerrors before asking for confirmation
[apt.git] / apt-pkg / install-progress.cc
index 497a360e977244e5d0d3b81f73f1429158476326..f1a9f42dc4b40af47654a891261ab220272bcd5b 100644 (file)
@@ -13,6 +13,7 @@
 #include <fcntl.h>
 #include <algorithm>
 #include <stdio.h>
+#include <sstream>
 
 #include <apti18n.h>
 
@@ -332,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;
 }