fix non-colourful palette reset

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

Signed-off-by: Mattias Andrée <maandree@operamail.com>
apply changes for tty to colourful=y

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