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
.
Available on these boards
- 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(buf: _typing.ReadableBuffer) int | None ¶
Write the buffer of bytes to the bus.
- Renvoie:
the number of bytes written
- Type renvoyé:
int or None