syscall.TTY_clear()syscall.TTY_setTextColor(1)syscall.TTY_setCursorPos(1,1)print("HyperionOS Bash Shell")print("")local a="example@testPrompt:~$ "while true do local b=""local c=1;local d=true;while d do local e=syscall.IO_getEventAny()if e then if e[1]=="keyTyped"then if e[3]=="\n"then print("")d=false elseif e[3]=="\b"then if c>1 then c=c-1;b=b:sub(1,c-1)..b:sub(c+1)end elseif e[3]:sub(1,1)=="\x1b"then elseif e[3]~="\t"and#e[3]==1 then b=b:sub(1,c-1)..e[3]..b:sub(c+1)c=c+1 end end end;local f,g=syscall.TTY_getCursorPos()syscall.TTY_setCursorPos(1,g)printInline(a..b.." ")syscall.TTY_setCursorPos(#a+c,g)end end