The problem is that the monitor is not getting it's clock updated as the loop should do! the program is for an over-complicated To Do List just so I have a little project to work on.
here is the code:
mon = peripheral.wrap("right")
function list()
local input2 = read()
if input2 == ("stop") then
start()
else
print("Unknown Command")
list()
end
shell.run("ToDoList")
while not guess == 3 do
sleep(0.3)
time = os.time()
atime = textutils.formatTime(time, false)
mon.setCursorPos(10,26)
mon.write("Day " .. tostring(os.day()))
mon.setCursorPos(1,26)
mon.write(atime)
end
end
function start()
term.clear()
term.setCursorPos(1, 1)
print("Enter Command: ")
local input = read()
if input == ("exit") then
os.reboot()
elseif input == "list" then
list()
start()
else
print("Unknown Command")
start()
end
end
start()












