xieite::term::reset_style()

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

Resets text colors and effects. Automatically called on destruction.


Declaration

void reset_style() noexcept;


Example

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