diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-28 00:26:17 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-28 00:26:17 +0100 |
commit | 5ed887855df9c39dcd22971073ed05b28a9ee95f (patch) | |
tree | 6450fc45ff5002b357b4d3cc9e0d948cb10c3bdd /apt-pkg/install-progress.h | |
parent | 4754718a4461ebff89f5b49c385a007b4197bcff (diff) | |
download | apt-5ed887855df9c39dcd22971073ed05b28a9ee95f.tar.gz |
properly handle SIGWINCH in PackageManagerFancy again
Diffstat (limited to 'apt-pkg/install-progress.h')
-rw-r--r-- | apt-pkg/install-progress.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apt-pkg/install-progress.h b/apt-pkg/install-progress.h index 010be82fd..513de1c08 100644 --- a/apt-pkg/install-progress.h +++ b/apt-pkg/install-progress.h @@ -116,11 +116,17 @@ namespace Progress { class PackageManagerFancy : public PackageManager { + private: + static void staticSIGWINCH(int); + static std::vector<PackageManagerFancy*> instances; + protected: - static void SetupTerminalScrollArea(int nr_rows); - static int GetNumberTerminalRows(); - static void HandleSIGWINCH(int); + void SetupTerminalScrollArea(int nr_rows); + void HandleSIGWINCH(int); + + int GetNumberTerminalRows(); sighandler_t old_SIGWINCH; + int child_pty; public: PackageManagerFancy(); |