Creates and displays a text element in the current shell output.
Syntax |
addText(): uint |
---|---|
Result |
Returns the ID of the created element, 0 in case of errors |
The returned ID can later be used with the setText() function to change the text an arbitrary number of times.
This method is useful if the text element is to be changed at least more than once: in the alternative case use the miscellaneous print() methods to display static messages that do not change since output.