Added newline support to terminal