alot of stuff

This commit is contained in:
2025-10-22 16:43:36 -07:00
parent 734587569a
commit b6126945fd
8 changed files with 110 additions and 35 deletions

View File

@@ -65,6 +65,8 @@ function lib.create(name, w, h, x, y)
name = name,
w = w,
h = h,
min_w = 3,
min_h = 3,
x = x or 1,
y = y or 2,
@@ -75,6 +77,8 @@ function lib.create(name, w, h, x, y)
textColor = colors.white,
bgColor = colors.black,
cursorBlink = false,
resizable = true,
draggable = true,
decorations = true,
alwaysOnTop = false,
alwaysBelow = false,
@@ -96,6 +100,7 @@ function lib.create(name, w, h, x, y)
init_col(xi)
for yy = 1, t.h do
local cell = t.buffer[xi][yy]
if not cell then cell = { char = " ", tc = t.textColor, bc = t.bgColor } end
cell.char, cell.tc, cell.bc = " ", t.textColor, t.bgColor
end
end
@@ -286,6 +291,8 @@ function lib.create(name, w, h, x, y)
function t.key_up(key) end
function t.resized(w,h) end
function t.closeRequested() t.closing = true end
function t.close()