This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Zambonie's profile picture

Computer not taking anyting,the cursor is blinking but its still not taking anything.

Started by Zambonie, 16 March 2013 - 02:00 AM
Zambonie #1
Posted 16 March 2013 - 03:00 AM
I am updated to the latest CC version with MC 1.5 and I have made an very short program wich shows the time on an monitor,but when I exit it,The computer is working but whenever I click,or type something in,its not taking it.And im sur-known bug or what? its not lag…So,is this an known bug or what?And its not something with the program for sure,cause it exits sucseffuly….But whats wrong?

As cloudy requested…The code:


m = peripheral.wrap("right")
while true do
m.clear()
m.setCursorPos(3,3)
m.setTextColor(colors.white)
m.setBackgroundColor(colors.lightBlue)
m.clear()
m.write("Time:")
local time = os.time()
m.setTextColor(colors.red)
m.write(textutils.formatTime(time,false))
local day = os.day()
m.setCursorPos(6,5)
m.setTextColor(colors.white)
m.write("Day:")
m.setTextColor(colors.red)
m.write(day)
sleep(1)
end
Cloudy #2
Posted 16 March 2013 - 03:10 AM
It is probably your program. Post code please.
MysticT #3
Posted 16 March 2013 - 07:50 AM
Well, you said the program exits successfuly, but it has an infinite loop and nothing that stops it. Did you terminate the program? Otherwise it is still running, and that's why you can't do anything else.