Cleaned up terminal colouring impl and added more config options
build 7