made lua debugger stop crying and added more docs
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
syscall.TTY_clear()
|
||||
--syscall.TTY_setTextColor(2)
|
||||
syscall.TTY_setTextColor(1)
|
||||
syscall.TTY_setCursorPos(1, 1)
|
||||
syscall.TTY_print("HyperionOS Bash Shell")
|
||||
local str=""
|
||||
while true do
|
||||
local event = syscall.IO_getEventAny()
|
||||
if event then
|
||||
syscall.TTY_print(table.serialize(event))
|
||||
if event[1]=="keyTyped" then
|
||||
if event[3]=="\b" then
|
||||
str=str:sub(1,#str-1)
|
||||
printInline("\b")
|
||||
else
|
||||
str=str..event[3]
|
||||
printInline(event[3])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user