xieite::term::cursor_alt_code()

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

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


Declaration

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


Example

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