bibliopixel.drivers.curses module

class bibliopixel.drivers.curses.Curses(*args, column_width=3, char='●', **kwds)[source]

Bases: bibliopixel.drivers.driver_base.DriverBase

A driver that uses the “curses” library to get a colored display on a regular terminal.

Note that this driver only works on some platforms.

The Linux default terminal probably works, but the exact details depend on your specific OS and version.

The MacOS default (Terminal) works at low frame rates but the colors are wrong (I delved into it and we can’t work round it).

However, in the MacOS Term2 program, it works at framerates up to at least 10fps.

TODO: check how it works on the Rpi (#803)

DRIVERS = <_weakrefset.WeakSet object>
static main()[source]

If a project has a Curses driver, the section “main” in the section “run” must be “bibliopixel.drivers.curses.Curses.main”.

run_in_curses(stdscr)[source]
static set_curses_colors()[source]
stop()[source]

Called to request any threads or resources to shut down.

write_color(stdscr, x, y)[source]