.
This commit is contained in:
		
							parent
							
								
									697625ea8e
								
							
						
					
					
						commit
						d358c7004d
					
				| @ -56,6 +56,12 @@ function Edit() | |||||||
|   os.reboot() |   os.reboot() | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | function Console() | ||||||
|  |   term.clear() | ||||||
|  |   term.setCursorPos(1,1) | ||||||
|  |   inMainMenu = false | ||||||
|  | end | ||||||
|  | 
 | ||||||
| function Reboot() | function Reboot() | ||||||
|   print("Rebooting...") |   print("Rebooting...") | ||||||
|   sleep(1) |   sleep(1) | ||||||
| @ -72,8 +78,9 @@ mainMenu = { | |||||||
|   [2] = { text = "Light Controls",handler=Choice2 }, |   [2] = { text = "Light Controls",handler=Choice2 }, | ||||||
|   [3] = { text = "Snake",handler=Snake }, |   [3] = { text = "Snake",handler=Snake }, | ||||||
|   [4] = { text = "Edit program",handler=Edit }, |   [4] = { text = "Edit program",handler=Edit }, | ||||||
|   [5] = { text = "Reboot",handler=Reboot }, |   [5] = { text = "Console",handler=Console }, | ||||||
|   [6] = { text = "Exit",handler=Exit } |   [6] = { text = "Reboot",handler=Reboot }, | ||||||
|  |   [7] = { text = "Exit",handler=Exit } | ||||||
| } | } | ||||||
| lightsMenu={ | lightsMenu={ | ||||||
|   [1]= { text="Lights On", handler=LightsOn}, |   [1]= { text="Lights On", handler=LightsOn}, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user