xieite::term::fg()

Defined in header <xieite/io/term.hpp>

Changes the foreground color of text.


Declaration

#0
void fg(std::uint8_t r, std::uint8_t g, std::uint8_t b) noexcept;

#1
void fg(const xieite::color3& color) noexcept;


Example

int main() {
	xieite::term term;
	term.fg(255, 0, 0);
	std::puts("Hello, world!");
}
Possible output:
Hello, world!
[View in Compiler Explorer]