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

How the Computer now that he is an Advanced

Started by ROBdk97, 30 October 2012 - 07:33 AM
ROBdk97 #1
Posted 30 October 2012 - 08:33 AM
Hello I now how a turtle now that he is an turtle like so:

If turtle then
print("I am")
end

But I want to now how this is by a Advanced Computer!!!

Thank you!
Luanub #2
Posted 30 October 2012 - 08:38 AM
use term.isColor() returns true for advanced, false for normal.
KaoS #3
Posted 30 October 2012 - 08:43 AM
lol. translation: I want to know how to check if a computer is advanced.

Answer: try this

if term.setTextColor then
  print('advanced')
end

EDIT: lol again… I didn't know about the isColor command though, thanks
ROBdk97 #4
Posted 30 October 2012 - 09:45 AM
Thanks for help
(I am german and I can't not so good english)
KaoS #5
Posted 30 October 2012 - 09:50 AM
all good :P/>/> I'm amazed at how many good german programmers there are out there, they seem to outnumber us. Good luck
Lyqyd #6
Posted 30 October 2012 - 01:41 PM
lol. translation: I want to know how to check if a computer is advanced.

Answer: try this

if term.setTextColor then
  print('advanced')
end

EDIT: lol again… I didn't know about the isColor command though, thanks

This is incorrect. term.setTextColor is available on both normal and advanced. One must call term.isColor() and use the return value.
KaoS #7
Posted 30 October 2012 - 01:45 PM
it is available on normal computers?(Jaw drops) but why?? what happens if you run it?
Lyqyd #8
Posted 30 October 2012 - 02:31 PM
it is available on normal computers?(Jaw drops) but why?? what happens if you run it?

If you try to set anything other than black or white, it throws an error. Yes, black text on white background and any other combination of the two is allowed on non-advances computers.