refactor prompt color setting