update text in terminal