change single \n to \r\n

Single \n works perfectly in -nographic mode, but the cursor moves down
without carriage return in GUI mode.