xieite::term::screen_alt_code()

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

Returns a string which enables or disables the alternative screen when printed.


Declaration

[[nodiscard]] static constexpr std::string screen_alt_code(bool x) noexcept;


Example

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