made lua debugger stop crying and added more docs

This commit is contained in:
2026-01-16 08:40:16 -05:00
parent e5d6ec9725
commit bd8fe50770
17 changed files with 66 additions and 105 deletions

View File

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