ascii art

This commit is contained in:
2026-05-12 22:30:56 +02:00
parent 953498a62d
commit 9ae939a213
3 changed files with 180 additions and 2 deletions

View File

@@ -160,8 +160,6 @@ module BBS
end
def dispatch(event)
relayout!
# Modal windows: top window gets first shot at events
if (win = top_window)
result = win.handle_event(event)
@@ -219,6 +217,8 @@ module BBS
@committed = FrameBuffer.new(c, r) if first || resized
@next = FrameBuffer.new(c, r)
relayout!
@next.fill(x: 1, y: 1, width: c, height: r, sgr: @theme[:screen])
@root.render(@next)
@windows.each { |w| w.render(@next) }