// 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);
}
