Revert "simplify screen color format"

This reverts commit 323d510bc58925dc6129d74d99d6c76555749fcd. The commit
totally broke GNU Screen support.