nice_terminal

clubsandwich.blt.nice_terminal.terminal

Exactly like bearlibterminal.terminal, but for any function that takes arguments x, y, dx, dy, or x, y, width, height, you can instead pass a single argument of type Point (for the first two) or Rect (for the last).

This makes interactions betweeen geom and bearlibterminal 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()