testing version of LuaBIOS and OpenOS

people were having issues getting them to work so now we promote consistency
This commit is contained in:
2025-06-28 20:41:49 +02:00
parent 8210e20939
commit 687cfebd00
182 changed files with 14016 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
local shell = require("shell")
local tty = require("tty")
local args = shell.parse(...)
local gpu = tty.gpu()
if #args == 0 then
local w, h = gpu.getViewport()
io.write(w," ",h,"\n")
return
end
if #args ~= 2 then
print("Usage: resolution [<width> <height>]")
return
end
local w = tonumber(args[1])
local h = tonumber(args[2])
if not w or not h then
io.stderr:write("invalid width or height\n")
return 1
end
local result, reason = gpu.setResolution(w, h)
if not result then
if reason then -- otherwise we didn't change anything
io.stderr:write(reason..'\n')
end
return 1
end
tty.clear()