xieite::term::bg()

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

Changes the background color of text.


Declaration

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

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


Example

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