this.refresh(0, this.rows - 1);
};
+/**
+ * Scroll the display of the terminal by a number of pages.
+ * @param {number} pageCount The number of pages to scroll.
+ */
+Terminal.prototype.scrollPages = function(pageCount) {
+ this.scrollDisp(pageCount * (this.rows - 1));
+}
+
/**
* Writes text to the terminal.
* @param {string} text The text to write to the terminal.
});
});
+ describe('scrollDisp', function() {
+ it('should scroll a single line', function() {
+ assert.equal(xterm.ydisp, -1);
+ });
+ });
+
describe('evaluateKeyEscapeSequence', function() {
it('should return the correct escape sequence for unmodified keys', function() {
// Backspace