forked from Hyperion/HyperionOS
Create bash
This commit is contained in:
@@ -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
|
||||
4
Src/Hyperion-bash-v1.0.0/bin/startup/runShell.lua
Normal file
4
Src/Hyperion-bash-v1.0.0/bin/startup/runShell.lua
Normal 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")
|
||||
Reference in New Issue
Block a user