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...")
 
 
(One intermediate revision by the same user not shown)
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 ===
Its default value is char(13), which is a carriage return (moves the
+
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
 
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
 
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
+
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
+
reset this value; you will need to manually reassign [[char]](13) to it
 
to restore normal behavior.
 
to restore normal behavior.
  
 
== 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]]

Latest revision as of 15:05, 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)