fullscreen implementation

This commit is contained in:
2025-10-25 13:25:03 -07:00
parent 85e19133a3
commit 4194765119
3 changed files with 84 additions and 22 deletions

View File

@@ -71,6 +71,7 @@ function lib.create(name, w, h, x, y, do_not_add)
y = y or 2,
-- column-major buffer: buffer[x][y] = {char, tc, bc}
isFullscreen = false,
buffer = {},
cursorX = 1,
cursorY = 1,
@@ -329,7 +330,9 @@ function lib.create(name, w, h, x, y, do_not_add)
t.buffer, t.w, t.h = newbuf, nw, nh
end
end
function t.fullscreen(fullscreen)
t.isFullscreen = fullscreen or not t.isFullscreen
end
function t.redraw() end -- renderer handles this elsewhere
function t.setVisible(_) end