From d358c7004d689caffc213dbc62e727b57edb75c4 Mon Sep 17 00:00:00 2001 From: ZareMate Date: Wed, 1 Jun 2022 19:47:43 +0200 Subject: [PATCH] . --- main/startup.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main/startup.lua b/main/startup.lua index 0c1749b..200046d 100644 --- a/main/startup.lua +++ b/main/startup.lua @@ -56,6 +56,12 @@ function Edit() os.reboot() end +function Console() + term.clear() + term.setCursorPos(1,1) + inMainMenu = false +end + function Reboot() print("Rebooting...") sleep(1) @@ -72,8 +78,9 @@ mainMenu = { [2] = { text = "Light Controls",handler=Choice2 }, [3] = { text = "Snake",handler=Snake }, [4] = { text = "Edit program",handler=Edit }, - [5] = { text = "Reboot",handler=Reboot }, - [6] = { text = "Exit",handler=Exit } + [5] = { text = "Console",handler=Console }, + [6] = { text = "Reboot",handler=Reboot }, + [7] = { text = "Exit",handler=Exit } } lightsMenu={ [1]= { text="Lights On", handler=LightsOn},