23 lines
529 B
C
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();
|
|
}
|