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!
How the Computer now that he is an Advanced
Started by ROBdk97, Oct 30 2012 08:33 AM
7 replies to this topic
#1
Posted 30 October 2012 - 08:33 AM
#2
Posted 30 October 2012 - 08:38 AM
use term.isColor() returns true for advanced, false for normal.
#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
EDIT: lol again... I didn't know about the isColor command though, thanks
Answer: try this
if term.setTextColor then
print('advanced')
end
EDIT: lol again... I didn't know about the isColor command though, thanks
#4
Posted 30 October 2012 - 09:45 AM
Thanks for help
(I am german and I can't not so good english)
(I am german and I can't not so good english)
#5
Posted 30 October 2012 - 09:50 AM
all good
/> I'm amazed at how many good german programmers there are out there, they seem to outnumber us. Good luck
#6
Posted 30 October 2012 - 01:41 PM
KaoS, on 30 October 2012 - 08:43 AM, said:
lol. translation: I want to know how to check if a computer is advanced.
Answer: try this
EDIT: lol again... I didn't know about the isColor command though, thanks
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.
#7
Posted 30 October 2012 - 01:45 PM
it is available on normal computers?(Jaw drops) but why?? what happens if you run it?
#8
Posted 30 October 2012 - 02:31 PM
KaoS, on 30 October 2012 - 01:45 PM, said:
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.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











