Process newlines and tabs in terminal.