xieite::term::strike_code()

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

Returns a std::string which enables or disables striked-through text when printed.


Declaration

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


Example

int main() {
	std::println("{}Hello, world!", xieite::term::strike_code(true));
}
Possible output:
Hello, world!
[View in Compiler Explorer]