Some rendering code for the UI on terminal.