Difference between revisions of "TextDisplay.inverse"

From MiniScript Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
<c>TextDisplay.inverse</c> gets or sets whether subsequent printing should be done in "inverse" mode,
+
<c>[[TextDisplay]].inverse</c> gets or sets whether subsequent printing should be done in "inverse" mode,
 
where the foreground and background colors are swapped.
 
where the foreground and background colors are swapped.
  

Latest revision as of 15:03, 2 April 2020

TextDisplay.inverse gets or sets whether subsequent printing should be done in "inverse" mode, where the foreground and background colors are swapped.

Usage Notes

This mode may also be controlled by printing two special characters: char(134) sets inverse to true, and char(135) sets inverse to false.)

Example

text.inverse = true; print " BLOCKY "; text.inverse = false