sort out char highlights in term mode