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?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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.
Link to post
Share on other sites