Inlined prompt colouring function