retroterm: added xterm palette and fixed coordinate order