Add helper function to print coloured help messages

Uses cmd_type.c as an example.