xieite ::term ::underline_code ()
Defined in header <xieite/io/term.hpp>
Returns a
std ::string
which enables or disables underlined text when printed.Declaration
[[nodiscard ]]static constexpr std ::string underline_code (bool x )noexcept ;
Example
Possible output:int main () {std ::println (" ,{} Hello, world!"xieite ::term ::underline_code (true )); }
[View in Compiler Explorer]Hello, world!