6f1508d1bf
TheWahlolly didn't know that arrays were stored in pointers when set into another variable, affecting the original array. I also made some changes into the code for ocelot logs so signals are much clearer to investigate (I hope).
12 lines
313 B
Lua
12 lines
313 B
Lua
import("termlib")
|
|
local event = import("event")
|
|
|
|
--local ocelot = component.proxy(component.list("ocelot")())
|
|
|
|
print("\n │\n │ ".._OSVERSION..'\n │ Welcome! Type "help" to get started.\n │')
|
|
while true do
|
|
--coroutine.yield()
|
|
local args = {event.pull("key_down")}
|
|
--ocelot.log(tostring(args[1]))
|
|
end
|