Avoid use of strcasecmp()

It isn't really necessary and isn't always available.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Update for more accurate line count
Fix a bogus compiler warning

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Fix a couple of compiler warnings

With the colour prompt support.
Also recognize '\e[m' as an escape sequence.
Simplify countColorControlChars().

Signed-off-by: Steve Bennett <steveb@workware.net.au>
Merge branch 'msteveb_master'