-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Milestone
Description
In some terminals such as Putty, MobaXterm, the cursor position is incorrect after several updates on the status bar. It should be right after the prompt, however sometime it's at the beginning or the end of the status bar. It seems like writer.flush()
is missing when flush
is true
in Status.class
:
@Override
public void update(List<AttributedString> newLines, int targetCursorPos, boolean flush) {
cursorPos = -1;
firstLine = rows - newLines.size();
super.update(newLines, targetCursorPos, flush);
if (cursorPos != -1) {
terminal.puts(Capability.restore_cursor); //missing terminal.writer().flush() here
}
}
Metadata
Metadata
Assignees
Labels
No labels