Skip to content

Commit

Permalink
Fill inserted lines with background color
Browse files Browse the repository at this point in the history
When scrolling occurs due to a LF or scroll code, the new line should be
filled with the currently set background color.  As with VTE, fill with
the _default_ color if the new line was caused by line-wrap.
  • Loading branch information
whydoubt committed Sep 22, 2018
1 parent a531b4d commit f5accf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,8 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
* @param isWrapped Whether the new line is wrapped from the previous line.
*/
public scroll(isWrapped?: boolean): void {
const newLine = BufferLine.blankLine(this.cols, DEFAULT_ATTR, isWrapped);
const blankAttr = isWrapped ? DEFAULT_ATTR : this.eraseAttr();
const newLine = BufferLine.blankLine(this.cols, blankAttr, isWrapped);
const topRow = this.buffer.ybase + this.buffer.scrollTop;
const bottomRow = this.buffer.ybase + this.buffer.scrollBottom;

Expand Down

0 comments on commit f5accf1

Please sign in to comment.