Difference between revisions of "TextDisplay.delimiter"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>TextDisplay.delimiter</c>: This value is a string which is printed after every print output. === Usage Notes === Its default value is char(13), which is a carriage ret...")
 
m
Line 1: Line 1:
<c>TextDisplay.delimiter</c>: This value is a string which is printed after every [[print]] output.
+
<c>[[TextDisplay]].delimiter</c> is a string which is printed after every [[print]] output.
  
 
=== Usage Notes ===
 
=== Usage Notes ===
Line 11: Line 11:
 
== Example ==
 
== Example ==
  
<ms>text.delimiter = ""
+
<ms>text.delimiter = ""; print "one"; print "two"; text.delimiter = char(13)</ms>
// print "one"
 
// print "two"
 
// text.delimiter = char(13)</ms>
 
  
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]

Revision as of 15:04, 2 April 2020

TextDisplay.delimiter is a string which is printed after every print output.

Usage Notes

Its default value is char(13), which is a carriage return (moves the cursor to the start of the next line). You may set it to "" (empty string) if you want no delimiter, allowing you to print several things in a row all on the same line. Note that TextDisplay.clear does not reset this value; you will need to manually reassign char(13) to it to restore normal behavior.

Example

text.delimiter = ""; print "one"; print "two"; text.delimiter = char(13)