From 2b24eab3703bedb2aa4f1329fc3c919c869b6e85 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 21 Sep 2006 07:13:43 +0000 Subject: The percent view now takes the terminal's width into account, pretty cool! --- src/viewerpercent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/viewerpercent.h') diff --git a/src/viewerpercent.h b/src/viewerpercent.h index 96412cb..d40ca1b 100644 --- a/src/viewerpercent.h +++ b/src/viewerpercent.h @@ -23,6 +23,8 @@ public: virtual void beginAction( const std::string &sName, int nCommands ); virtual void endAction(); + void printPercent( const std::string &sCur ); + private: int nTotalCommands; int nCurCommand; @@ -31,6 +33,7 @@ private: std::string sTarget; int nLastLen; int nWidth; + int nTermWidth; }; #endif -- cgit v1.2.3