From 0bf7bf56a533e72325513e451ffe7f357a58af40 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sun, 9 Oct 2016 13:20:33 -0700 Subject: [PATCH] Add jsdoc to scrollTo functions --- src/xterm.js | 6 ++++++ 1 file changed, 6 insertions(+) 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); }