Flush data on tty open. Also reset colour before clearing line/screen.

3 files changed