forked from Hyperion/HyperionOS
19 lines
482 B
Plaintext
19 lines
482 B
Plaintext
syscall.TTY_clear()
|
|
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
|
|
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 |