Create bash

This commit is contained in:
Ryan T
2026-01-15 16:46:24 -05:00
parent 70526c76ba
commit 968f4c54d7
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
syscall.TTY_clear()
syscall.TTY_setTextColor(2)
syscall.TTY_setCursorPos(1, 1)
syscall.TTY_print("HyperionOS Bash Shell")
while true do
syscall.TTY_print(syscall.IO_getEventAny())
end

View File

@@ -0,0 +1,4 @@
local fs = require("sys.fs")
local bashStr = fs.readAllText("/bin/bash")
local bashFun = load(bashStr)
syscall.HPV_spawn(bashFun, "bash")