pyre.shells.ANSI

Module Contents

class pyre.shells.ANSI.ANSI(**kwds)

Bases: pyre.component

A terminal that provides color capabilities using ANSI control sequences

ansi
x11
gray
misc
rgb(self, rgb, foreground=True)

Mix the 6 digit hex string into an ANSI 24-bit color

rgb256(self, red=0, green=0, blue=0, foreground=True)

Mix the three digit (r,g,b) base 6 string into an ANSI 256 color