Add 256-color compatibility for screen and shell