screenConsole

Used as a terminal console, so you can add and clear text, etc.

todo: finish this

Initializing

terminal = tpil.gui.screenConsole(tpil)

and then to add text you just

terminal.addText("hello WORLD")

to clear text:

terminal.clearText()

you can also do special printing by overriding the text variable in the object, but you must force the display to update using terminal.update()

terminal.text = "My very very very" + "\n" + "special text" + "\n" + "with newlines."
terminal.update() 

Last updated