Add jsdoc to scrollTo functions

This commit is contained in:
Daniel Imms
2016-10-09 13:20:33 -07:00
parent e5d130b698
commit 0bf7bf56a5
+6
View File
@@ -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);
}