Added cterm/gui color management code.