Here's a patch that removes the hard-coded vt100 escape sequences that set colours and replace them with use of the terminfo library instead. This makes the application much less dependent on the underlying terminal type.
I've tried to implement it in the style of the existing implementation as much as possible, but there are things that I didn't implement, for example the ability to configure the colours to use. This is because I wasn't entirely certain how to integrate that in the config file reader properly. Right now the colours are hardcoded in the Output.cc file, where the value -1 means "reset".
Regards,
Elias