<div dir="ltr"><br>Right now the output from the microcom program itself is buffered and<br>not shown to the user as soon as possible, resulting in strange<br>artifacts like:<br>  * Start of program "Escape character is ..." prompt is not shown until<br>    the user first hit the escape character.<br>  * "Filename: " prompt is not visible to the user.<br><br>This patch changes buffered write to stdout to unbuffered write.<br>Also changes the "paste file" command to be able to recover from open()<br>errors, so that errors like "file not found" don't crash the whole<br>console program:<br>  * Change xprintf to dprintf or xputs, so that written output is<br>    not unbuffered and immediately flushed.<br>  * If 'Esc' is pressed to cancel the "paste file" command, clear the<br>    "Filename:" prompt.<br>  * If "paste file" command gets an empty filename, clear the prompt.<br>    (same behavior as the previous case)<br>  * If "paste file" command failed to open() the file, just print the<br>    error text and then return. Don't crash.<br></div>