Skip to content

Commit

Permalink
Problems when TERM=ansi is used on an xterm terminal, fixes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 12, 2017
1 parent 13d6722 commit 30970a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terminal/src/main/java/org/jline/utils/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ public void update(List<AttributedString> newLines, int targetCursorPos) {
terminal.puts(Capability.clr_eol);
}
} else if (atRight) {
if (this.wrapAtEol)
cursorPos++;
else {
if (this.wrapAtEol) {
terminal.writer().write(" \b");
cursorPos++;
} else {
terminal.puts(Capability.carriage_return); // CR / not newline.
cursorPos = curCol;
}
Expand Down

0 comments on commit 30970a1

Please sign in to comment.