add 256 color support