Terminal control/Inverse video: Difference between revisions

Content added Content deleted
(add Standard ML)
(Replaced ANSI codes with call to terminal proc "styledWrite".)
Line 303: Line 303:


=={{header|Nim}}==
=={{header|Nim}}==
<lang nim>echo "\e[7mReversed\e[m Normal"</lang>
<lang nim>import terminal

stdout.styledWrite("normal ", styleReverse, "inverse", resetStyle, " normal\n")</lang>


=={{header|OCaml}}==
=={{header|OCaml}}==