This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CreeperGoBoom's profile picture

[solved]changing Text Color Without Clearing? - Terminal Glasses Bridge

Started by CreeperGoBoom, 25 November 2013 - 03:52 AM
CreeperGoBoom #1
Posted 25 November 2013 - 04:52 AM
title says it all, how do i do this? i know i can change the text using settext but how would i change both color and text without having to clear?
Edited on 25 November 2013 - 03:59 AM
theoriginalbit #2
Posted 25 November 2013 - 04:55 AM
there is a setter on the text object to change the colour as well. its setColor.


local bridge = peripheral.wrap('left')
local text = bridge.addText(10, 10, "Hello world", 0xFF0000)
sleep(2)
text.setText("Foo bar")
text.setColor(0x00FF00)
Edited on 25 November 2013 - 03:56 AM
CreeperGoBoom #3
Posted 25 November 2013 - 04:59 AM
thanks :D/>