Add a write buffer to the xterm, avoiding that the terminal hangs.