Skip to content

Commit

Permalink
Merge branch 'master' into cursor_color
Browse files Browse the repository at this point in the history
  • Loading branch information
mofux authored Jul 25, 2017
2 parents e5158ad + f36bd24 commit 51bed8e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/InputHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ export class InputHandler implements IInputHandler {
if (this._terminal.buffer.x >= this._terminal.cols) {
this._terminal.buffer.x--;
}
/**
* This event is emitted whenever the terminal outputs a LF or NL.
*
* @event lineFeed
*/
this._terminal.emit('lineFeed');
}

/**
Expand Down Expand Up @@ -281,7 +287,7 @@ export class InputHandler implements IInputHandler {
this._terminal.buffer.y = this._terminal.rows - 1;
}
this._terminal.buffer.x = 0;
};
}


/**
Expand All @@ -299,7 +305,7 @@ export class InputHandler implements IInputHandler {
this._terminal.buffer.y = 0;
}
this._terminal.buffer.x = 0;
};
}


/**
Expand Down Expand Up @@ -1107,7 +1113,7 @@ export class InputHandler implements IInputHandler {
this._terminal.cursorHidden = true;
break;
case 1049: // alt screen buffer cursor
; // FALL-THROUGH
// FALL-THROUGH
case 47: // normal screen buffer
case 1047: // normal screen buffer - clearing it first
// Ensure the selection manager has the correct buffer
Expand Down

0 comments on commit 51bed8e

Please sign in to comment.