term caps fix

Signed-off-by: Mattias Andrée <maandree@operamail.com>
make colouring work on both normal systems and haiku

Signed-off-by: Mattias Andrée <maandree@operamail.com>