xieite::term::clear_screen_from_code()

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

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


Declaration

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


Example

int main() {
	std::println("Hello,\nworld!\r{}", xieite::term::clear_screen_from_code());
}
Possible output:
Hello,