diff --git a/src/xterm.js b/src/xterm.js index ecfe466c..e9b3f17d 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1315,10 +1315,16 @@ Terminal.prototype.scrollPages = function(pageCount) { this.scrollDisp(pageCount * (this.rows - 1)); } +/** + * Scrolls the display of the terminal to the top. + */ Terminal.prototype.scrollToTop = function() { this.scrollDisp(-this.ydisp); } +/** + * Scrolls the display of the terminal to the bottom. + */ Terminal.prototype.scrollToBottom = function() { this.scrollDisp(this.ybase - this.ydisp); }