19 lines
480 B
C
19 lines
480 B
C
// vim:fileencoding=utf-8:foldmethod=marker
|
|
|
|
#include "termcolour.h"
|
|
#include "terminal_colours.h"
|
|
#include "../../../base/strings/str8/str8.h"
|
|
|
|
void wpShellTermcolourPrintText(WpStr8RO *text, WpTerminalColour colour) {
|
|
if (colour < WP_TERM_COLOUR_FG_BLACK || colour > WP_TERM_COLOUR_FG_BR_WHITE) {
|
|
return;
|
|
}
|
|
|
|
printColouredText(text, colour);
|
|
}
|
|
|
|
void wpShellTermcolourClearColour(void) {
|
|
WpStr8RO empty = wpStr8LitRo("");
|
|
printColouredText(&empty, WP_TERM_COLOUR_CLEAR);
|
|
}
|