TUI: move xterm colours into a file dedicated to the purpose, extend the palette to be 256 colours.