Jump to content




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


  • You cannot reply to this topic
2 replies to this topic

#1 CreeperGoBoom

  • Members
  • 91 posts

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 by CreeperGoBoom, 25 November 2013 - 04:59 AM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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 by theoriginalbit, 25 November 2013 - 04:56 AM.


#3 CreeperGoBoom

  • Members
  • 91 posts

Posted 25 November 2013 - 04:59 AM

thanks :D





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users