Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

sibomots

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by sibomots

  1. Been a C/C++ software engineer over 30 years,  just not Lua.    I've browsed the Wiki and nothing seems to answer these questions.

     

     

    Question -- Colored Text:

     

    In OpenComputers, need sample code that prints colored text with Tier2 or Tier3 computer systems.

     

    I've tried:

     

    local component = require("component")

    local gpu = component.gpu

    local term = require("term")

    -- green text

    gpu.setForeground(0x00FF00)

    term.write("howdy world\n")

     

    In order to print colored text, do I need to use the functions in gpu or in term?

     

     

     

    Question -- The Editor and adjusting resolutions.

     

    When gpu.setResolution(w,h) it resets the resolution of the window interface to the computer.  Is there a way to adjust the resolution of the graphics for the monitors attached to the computer but not the interactive shell to program the computer?

     

    I notice (thankfully) I can paste into the editor.  How do I copy the buffer out?

     

    Any chance vi will be ported?  Pretty please!?  ;-)

     

     

    A thread/task:

     

    I need to fire off a thread and then wait for the thread (rendezvous).  Are there any samples that work with OpenComputers ?

     

     

    Question -- Graphics primatives:

     

    Lets say I want to blit a specific pixel at a certain location with a certain color.  What code samples exist to do that?

     

     

    Thanks Muchly.

     

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.