Trying hard to get color capabilities from Xterm and Screen in a
somewhat similar fashion.