added support for 256 colors terminal