git-svn-id: svn://db.shs.com.ru/pip@4 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
22
utils/system_daemon/shared.h
Normal file
22
utils/system_daemon/shared.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "piconsole.h"
|
||||
|
||||
extern PIConsole console;
|
||||
|
||||
inline void header(int cols = 1) {
|
||||
console.addString("PIP System Daemon (PIP " + PIPVersion() + ")", 1, PIConsole::Yellow | PIConsole::Inverse);
|
||||
for (int i = 2; i <= cols; ++i)
|
||||
console.addString(" ", i, PIConsole::Yellow | PIConsole::Inverse);
|
||||
}
|
||||
|
||||
inline void startTab(int cols = 1) {
|
||||
console.pause(true);
|
||||
console.clearTab(0);
|
||||
console.lock();
|
||||
header(cols);
|
||||
}
|
||||
|
||||
inline void finishTab() {
|
||||
console.unlock();
|
||||
console.pause(false);
|
||||
console.update();
|
||||
}
|
||||
Reference in New Issue
Block a user