Consider the following sequence:
xterm.setPrompt("FOO>");
xterm.writePrompt();
xterm.write("x");
xterm.writePrompt();
Actual output:
Expected output:
The test of whether "prompt has been written in this line" happens outside of the xterm processing loop:
|
//prompt has been written in this line |