π’ Print
Utilities for printing text to the screen.
ui_printβ
Prints one or multiple lines.
Argument | Description |
---|---|
TEXT | Text to print (multiple allowed) |
# Single line
ui_print "Hello world"
# Multiple lines
ui_print "This line" "and this" "and this"
fprintβ
Prints a fileβs content.
Argument | Description |
---|---|
FILE | File to print |
fprint "/sdcard/test.txt"
printβ
Prints a message written in PlainMark, enabling boxes, tables, and centered text across different installation environments and screen widths (measured in characters, not pixels).
Argument | Description |
---|---|
TEXT | PlainMark formatted text |
WIDTH | Screen width in characters |
# Width = 50 characters
print "
<box>
<center>
Welcome to PlainMark!
</center>
<linebox/>
<center>
By @BlassGO | 2024
</center>
</box>
" 50
tip
For more on PlainMark syntax, click here.
echo2β
Prints text to stderr (useful for error messages).
Argument | Description |
---|---|
TEXT | Text to print |
echo2 "Error message"