diff --git a/Src/Hyperion-bash/bin/hysh b/Src/Hyperion-bash/bin/hysh index f7edf76..0e1b051 100644 --- a/Src/Hyperion-bash/bin/hysh +++ b/Src/Hyperion-bash/bin/hysh @@ -1,6 +1,6 @@ --:Minify:-- -syscall.open("/dev/tty/tty1","r") --stdin (Device 0) -syscall.open("/dev/tty/tty1","w") --stdout (Device 1) +syscall.open("/dev/tty/1","r") --stdin (Device 0) +syscall.open("/dev/tty/1","w") --stdout (Device 1) syscall.open("/dev/null","w") --stderr (device 2) local success, errorMsg = xpcall(function() @@ -948,8 +948,8 @@ local function runCommand(command) local proc = syscall.spawn(function() -- Open standard fds so programs that don't do it themselves work correctly. - syscall.open("/dev/tty/tty1", "r") -- fd 0 stdin - syscall.open("/dev/tty/tty1", "w") -- fd 1 stdout + syscall.open("/dev/tty/1", "r") -- fd 0 stdin + syscall.open("/dev/tty/1", "w") -- fd 1 stdout syscall.open("/dev/null", "w") -- fd 2 stderr -- exec replaces this coroutine's code with a fresh isolated environment -- compiled from disk by the kernel (via loadExecutable -> freshUserEnv), diff --git a/Src/Hyperion-bash/bin/login b/Src/Hyperion-bash/bin/login index a81c82e..50c3a2e 100644 --- a/Src/Hyperion-bash/bin/login +++ b/Src/Hyperion-bash/bin/login @@ -1,6 +1,6 @@ --:Minify:-- -syscall.open("/dev/tty/tty1", "r") --stdin (fd 0) -syscall.open("/dev/tty/tty1", "w") --stdout (fd 1) +syscall.open("/dev/tty/1", "r") --stdin (fd 0) +syscall.open("/dev/tty/1", "w") --stdout (fd 1) syscall.open("/dev/null", "w") --stderr (fd 2) diff --git a/Src/Hyperion-firmware-cct/lib/modules/CC-Tweaked/25_tty.kmod b/Src/Hyperion-firmware-cct/lib/modules/CC-Tweaked/25_tty.kmod index 9c5e168..4a86f4a 100644 --- a/Src/Hyperion-firmware-cct/lib/modules/CC-Tweaked/25_tty.kmod +++ b/Src/Hyperion-firmware-cct/lib/modules/CC-Tweaked/25_tty.kmod @@ -354,10 +354,10 @@ kernel.processes.cctmond = function() end end -newtty(apis.term, "TTY1", fifo.pop) +newtty(apis.term, "1", fifo.pop) for i,v in ipairs({peripheral.find("monitor")}) do v.setTextScale(.5) v.write("Initializing...") - newtty(v,"TTY"..tostring(i+1),function () end) + newtty(v,tostring(i+1),function () end) end \ No newline at end of file