17 posts
Location
Germany
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!
1111 posts
Location
Portland OR
Posted 30 October 2012 - 08:38 AM
use term.isColor() returns true for advanced, false for normal.
1548 posts
Location
That dark shadow under your bed...
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
17 posts
Location
Germany
Posted 30 October 2012 - 09:45 AM
Thanks for help
(I am german and I can't not so good english)
1548 posts
Location
That dark shadow under your bed...
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
8543 posts
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.
1548 posts
Location
That dark shadow under your bed...
Posted 30 October 2012 - 01:45 PM
it is available on normal computers?(Jaw drops) but why?? what happens if you run it?
8543 posts
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.