Jump to content




How the Computer now that he is an Advanced


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

#1 ROBdk97

  • Members
  • 18 posts
  • LocationGermany

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!

#2 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 30 October 2012 - 08:38 AM

use term.isColor() returns true for advanced, false for normal.

#3 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat 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

#4 ROBdk97

  • Members
  • 18 posts
  • LocationGermany

Posted 30 October 2012 - 09:45 AM

Thanks for help
(I am german and I can't not so good english)

#5 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat 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

#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 30 October 2012 - 01:41 PM

View PostKaoS, 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
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 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat 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?

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 30 October 2012 - 02:31 PM

View PostKaoS, 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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users