refactor the terminal style