xieite::term::clear_line_until_code()

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

Returns a string which clears text from the start of the line on which the cursor is on, until the cursor's position, when printed.


Declaration

[[nodiscard]] static constexpr std::string clear_line_until_code() noexcept;


Example

int main() {
	std::println("Hello, {}world!", xieite::term::clear_line_until_code());
}
Possible output:
       world!