Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong output when writePrompt and write are interleaved: #42

Open
javier-godoy opened this issue Mar 12, 2022 · 1 comment
Open

Wrong output when writePrompt and write are interleaved: #42

javier-godoy opened this issue Mar 12, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@javier-godoy
Copy link
Member

Consider the following sequence:

xterm.setPrompt("FOO>");
xterm.writePrompt();
xterm.write("x");
xterm.writePrompt();

Actual output:

x
FOO>FOO>

Expected output:

FOO>x

The test of whether "prompt has been written in this line" happens outside of the xterm processing loop:

@paodb paodb added the bug Something isn't working label Mar 14, 2022
@paodb paodb moved this to To Do in Flowing Code Addons May 6, 2024
@rucko24
Copy link

rucko24 commented Jan 16, 2025

Hi,

I understand that this still persists, right?

Greetings.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Do
Development

No branches or pull requests

3 participants