Reimplemented swdunlop's 256 color support.