diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 07:13:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 07:13:43 +0000 |
commit | 2b24eab3703bedb2aa4f1329fc3c919c869b6e85 (patch) | |
tree | f3a7c5d3a8b113a99b705095d30a04789426e64d /src/viewerpercent.h | |
parent | 3825e6cb1008dea6062ef0c3f5ffecf249a3f420 (diff) | |
download | build-2b24eab3703bedb2aa4f1329fc3c919c869b6e85.tar.gz build-2b24eab3703bedb2aa4f1329fc3c919c869b6e85.tar.bz2 build-2b24eab3703bedb2aa4f1329fc3c919c869b6e85.tar.xz build-2b24eab3703bedb2aa4f1329fc3c919c869b6e85.zip |
The percent view now takes the terminal's width into account, pretty cool!
Diffstat (limited to '')
-rw-r--r-- | src/viewerpercent.h | 3 |
1 files changed, 3 insertions, 0 deletions
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: | |||
23 | virtual void beginAction( const std::string &sName, int nCommands ); | 23 | virtual void beginAction( const std::string &sName, int nCommands ); |
24 | virtual void endAction(); | 24 | virtual void endAction(); |
25 | 25 | ||
26 | void printPercent( const std::string &sCur ); | ||
27 | |||
26 | private: | 28 | private: |
27 | int nTotalCommands; | 29 | int nTotalCommands; |
28 | int nCurCommand; | 30 | int nCurCommand; |
@@ -31,6 +33,7 @@ private: | |||
31 | std::string sTarget; | 33 | std::string sTarget; |
32 | int nLastLen; | 34 | int nLastLen; |
33 | int nWidth; | 35 | int nWidth; |
36 | int nTermWidth; | ||
34 | }; | 37 | }; |
35 | 38 | ||
36 | #endif | 39 | #endif |