xieite ::term ::invert ()
Defined in header <xieite/io/term.hpp>
Enables or disables the swapping of foreground and background colors of text.
Declaration
void invert (bool x )noexcept ;
Example
Possible output:int main () {xieite ::term term ;term .fg (255 ,0 ,0 );term .bg (0 ,0 ,255 );std ::puts ("Hello," );term .invert (true );std ::puts ("world!" ); }
Hello, world!