r/ComputerCraft • u/ThatOnePandaGuy • Jan 22 '17
[Help] how do i run a program
So im trying to make a OS. So i have it where i type in "help" it shows me some commands and i want it to where i type in "back" it shows me the start up screen is there any way to do that?
1
Upvotes
1
u/Mikeryck Jan 30 '17
I think I see what you're trying to do.
So I would put the startup screen and the commands into functions and when you back it would call that function. So it would something like this: (I will edit this comment with code later)
input = read()
if input = back then startscreen() <-- call function
This is what i would do and I don't know if it's correct.
1
u/LMGN Jan 22 '17
Any code?