Skip to content

Wrong output when writePrompt and write are interleaved: #42

Open
@javier-godoy

Description

@javier-godoy

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions