Add 256-colour support

These commits add support for  the 256-colour extension that most terminal emulators implement nowadays (although it isn't standardised) (`38;5;c` and `48;5;c`), as well as the aixterm extension for high-intensity colours (`90`-`97` and `100`-`107`).