From 65b0a3077e7d1c4e8d7ec375b650aa87072ee7dd Mon Sep 17 00:00:00 2001 From: Ruffles Date: Tue, 7 Apr 2026 02:58:02 +0000 Subject: [PATCH] Update startup.lua --- startup.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/startup.lua b/startup.lua index e9faf16..484a668 100644 --- a/startup.lua +++ b/startup.lua @@ -11,6 +11,7 @@ local instruction = "Please state your name to make a request:" local instruction2 = "Now please type out a request." local pressanykey = "Press any key to continue." local lastchance1 = "Are you sure you want to put in an order?" +local lastchance2 = "Press the enter key to continue." local lastchance3 = "Hold ctrl+r (or cmd+r on macos) to cancel" local ordersubmitted1 = "Your order has been submitted!" while true do @@ -50,7 +51,10 @@ while true do term.setCursorPos(dx/2-#lastchance3/2,dy/2+2) term.write(lastchance3) term.setCursorBlink(false) - os.pullEvent("key") + local _,key + repeat + _,key = os.pullEvent("key") + until key == keys.enter trans.addOrder(name,request) term.setBackgroundColor(colors.gray) term.clear()