This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nateracecar5's profile picture

OS Planning

Started by nateracecar5, 08 October 2012 - 10:34 PM
nateracecar5 #1
Posted 09 October 2012 - 12:34 AM
So I plan to make my own computercraft OS after seeing the TekOS in action. BUT I plan to make it a little more "clean." First off, I am NOT going to use menu's even though they are VERY useful. I am going to be using a simple "write and read" sort of OS. I am hoping to learn two things from this:
1. I need to know how to change TEXT variables from in the code
2. I need a WORKING clock system

All I need is the computercraft army to help me. Any thoughts?

EDIT: TekOS link
CLICK HERE!

I also am planning to use pastebin as a "web store" and you can download programs from pastebin. That will probably be the most complicated thing. :D/>/>
I am confident I can do it though.
Orwell #2
Posted 09 October 2012 - 12:53 AM
1. I need to know how to change TEXT variables from in the code
I really don't understand what you mean with this. Which variables?

2. I need a WORKING clock system

parallel.waitForAny(
  function() os.run({}, '/rom/programs/clear') os.run({},'/rom/programs/shell') end,
  function()
	while true do
	  local time = textutils.formatTime( os.time() )
	  local x,y = term.getCursorPos()
	  local w,h = term.getSize()
	  term.setCursorPos(w-#time,h)
	  term.write(time)
	  term.setCursorPos(x,y)
	  sleep(1)
    end
  end
)
nateracecar5 #3
Posted 07 January 2013 - 11:41 AM
Thanks for the clock system! Although I have no idea what I meant by changing text variables. Maybe color? I don't know. This was a long time ago. This really helped. Thanks again! Working on the Web Store now.