Add 256-colour support

This commit adds support for  the 256-colour extension that most terminal emulators implement nowadays (although it isn't standardised).