Added basic xterm-ish palette swap support.