terminalio – Displays text in a TileGrid

The terminalio module contains classes to display a character stream on a display. The built in font is available as terminalio.FONT.

terminalio.FONT :fontio.BuiltinFont

The built in font

class terminalio.Terminal(tilegrid: displayio.TileGrid, font: fontio.BuiltinFont)

Display a character stream with a TileGrid

Terminal manages tile indices and cursor position based on VT100 commands. The font should be a fontio.BuiltinFont and the TileGrid’s bitmap should match the font’s bitmap.

write(self, buf: ReadableBuffer) → Optional[int]

Write the buffer of bytes to the bus.


the number of bytes written

Return type

int or None