summaryrefslogtreecommitdiff
path: root/apt-pkg/install-progress.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-07 17:54:11 +0100
committerMichael Vogt <mvo@debian.org>2013-12-07 17:54:11 +0100
commit8fafb8adc032002284f53359e1308efa609f9239 (patch)
tree2348ae1953446a069c0e44bcd20915c22c4d89b1 /apt-pkg/install-progress.h
parentbc435af429f427c6a5db971c3d4cc7f15a2fe55d (diff)
parentce34af08ad6866869147e3525fa6c89d8dcb4601 (diff)
Merge branch 'debian/sid' into ubuntu/master
Conflicts: debian/changelog debian/gbp.conf
Diffstat (limited to 'apt-pkg/install-progress.h')
-rw-r--r--apt-pkg/install-progress.h9
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,