Skip to content

Commit e52a8bf

Browse files
committed
Implement change_cell() and present()
1 parent 9c27b43 commit e52a8bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/termbox/termbox.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,12 @@ def close(self):
162162
def present(self):
163163
"""Sync state of the internal cell buffer with the terminal.
164164
"""
165-
tb_present()
166-
pass
165+
tdl.flush()
167166

168167
def change_cell(self, x, y, ch, fg, bg):
169168
"""Change cell in position (x;y).
170169
"""
171-
tb_change_cell(x, y, ch, fg, bg)
170+
self.console.draw_char(x, y, ch, fg, bg)
172171

173172
def width(self):
174173
"""Returns width of the terminal screen.

0 commit comments

Comments
 (0)