Implemented text colour ioctls.
Added (theoretical) support for switching modes.
Merge branch 'terminal-driver'