progress on unicode lib

This commit is contained in:
2026-02-13 22:12:19 +01:00
parent 66b73ec006
commit a2ddcfa030
7 changed files with 1325 additions and 239 deletions

View File

@@ -40,5 +40,5 @@ shell.setWorkingDirectory(os.getenv("HOME"))
local home_shrc = shell.resolve(".shrc")
if fs.exists(home_shrc) then
loadfile(shell.resolve("source", "lua"))(home_shrc)
assert(loadfile(shell.resolve("source", "lua")))(home_shrc)
end

View File

@@ -14,10 +14,12 @@ do
end
while true do
debug.print("try shell")
local result, reason = xpcall(require("shell").getShell(), function(msg)
return tostring(msg).."\n"..debug.traceback()
end)
if not result then
debug.print(reason)
io.stderr:write((reason ~= nil and tostring(reason) or "unknown error") .. "\n")
io.write("Press any key to continue.\n")
os.sleep(0.5)