nice_terminal
¶
-
clubsandwich.blt.nice_terminal.
terminal
¶ Exactly like
bearlibterminal.terminal
, but for any function that takes argumentsx, y
,dx, dy
, orx, y, width, height
, you can instead pass a single argument of typePoint
(for the first two) orRect
(for the last).This makes interactions betweeen
geom
andbearlibterminal
much less verbose.Example:
from clubsandwich.blt.nice_terminal import terminal from clubsandwich.geom import Point terminal.open() a = Point(10, 10) b = a + Point(1, 1) terminal.put(a, 'a') terminal.put(b, 'b') terminal.refresh() terminal.read() terminal.close()