xieite::term::clear_line_from()

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

Clears text from the cursor's position until the end of the same line.


Declaration

void clear_line_from() noexcept;


Example

int main() {
	xieite::term term;
	std::puts("0123456789\r");
	term.clear_line_from();
	std::puts("test");
}
Possible output:
test