diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-06 15:54:12 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-06 15:54:12 +0100 |
commit | e96e4e9cef3a0137b789117f72a93a8e9106562e (patch) | |
tree | 36210c2be37bce2f14fe4d4fcb1eaafb06767673 /apt-pkg/install-progress.h | |
parent | 7d15eeef6e61d9a02efcad2dc704f22df4276d9b (diff) |
Handle SIGWINCH in APT::Progress-Fancy=1
Diffstat (limited to 'apt-pkg/install-progress.h')
-rw-r--r-- | apt-pkg/install-progress.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apt-pkg/install-progress.h b/apt-pkg/install-progress.h index d721c6373..4b7590983 100644 --- a/apt-pkg/install-progress.h +++ b/apt-pkg/install-progress.h @@ -3,7 +3,7 @@ #include <string> #include <unistd.h> - +#include <signal.h> namespace APT { namespace Progress { @@ -117,11 +117,14 @@ namespace Progress { class PackageManagerFancy : public PackageManager { protected: - int nr_terminal_rows; - void SetupTerminalScrollArea(int nr_rows); + static void SetupTerminalScrollArea(int nr_rows); + static int GetNumberTerminalRows(); + static void HandleSIGWINCH(int); + sighandler_t old_SIGWINCH; public: PackageManagerFancy(); + ~PackageManagerFancy(); virtual void Start(); virtual void Stop(); virtual bool StatusChanged(std::string PackageName, |