v1.7.2 - Fixed a bug with ls and shell working directory handling.

This commit is contained in:
TheWahlolly
2025-05-29 16:26:07 +03:00
parent 918258ba60
commit 34f716beaa
5 changed files with 9 additions and 9 deletions
+3
View File
@@ -93,6 +93,9 @@ while true do
--print(shellcfg["prompt"]:format(shell.workingDirectory),false)
-- termlib.cursorPosX = #(shell.workingDirectory .. " > ")
-- termlib.cursorPosY = termlib.cursorPosY - 1
if shell.workingDirectory:sub(-1, -1) ~= "/" then
shell.workingDirectory = shell.workingDirectory .. "/"
end
local shellCommand = read("shell", shellcfg.prompt:format(shell.workingDirectory))
shell.run(shellCommand)
gpu.freeAllBuffers()