Fix mappings for xterm