This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/pip/utils/system_daemon/shared.h
Бычков Андрей ba8bc27298 1
git-svn-id: svn://db.shs.com.ru/libs@1 a8b55f48-bf90-11e4-a774-851b48703e85
2015-02-28 21:28:53 +00:00

23 lines
529 B
C

#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();
}