xieite::term::clear_line_until()

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

Clears text from the start of the line on which the cursor is on, until the cursor's position.


Declaration

void clear_line_until() noexcept;


Example

int main() {
	xieite::term term;
	std::print("Hello, ");
	term.clear_line_until();
	std::puts("world!");
}
Possible output:
       world!