handling screen/vim 256 colors compatibility