Update startup.lua

This commit is contained in:
2026-04-07 02:58:02 +00:00
parent da480fd7a4
commit 65b0a3077e

View File

@@ -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()