xieite::term::clear_screen_until_code()

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

Returns a string which clears the screen until the cursor's position when printed.


Declaration

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


Example

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