Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/model/canvasModel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ end
function CanvasModel:write(text)
if string.is_non_empty_string(text) then
self.terminal:print(text)
self.terminal.dirty = true
end
end

Expand All @@ -70,9 +71,11 @@ end
function CanvasModel:reset()
self.terminal:clear()
self.terminal:move_to(1, 1)
self.terminal.dirty = true
end

function CanvasModel:invalidate_terminal()
self.terminal.dirty = true
end

function CanvasModel:update(dt)
Expand Down
4 changes: 2 additions & 2 deletions src/view/canvas/terminalView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local function terminal_draw(terminal, canvas, overlay)
local char_width, char_height =
terminal.char_width, terminal.char_height

-- if terminal.dirty or overlay then
if terminal.dirty or overlay then
Comment thread
dsent marked this conversation as resolved.
gfx.push('all')

gfx.setCanvas(canvas)
Expand Down Expand Up @@ -61,7 +61,7 @@ local function terminal_draw(terminal, canvas, overlay)
end
terminal.dirty = false
gfx.pop()
-- end
end
Comment thread
dsent marked this conversation as resolved.


if terminal.show_cursor then
Expand Down
Loading