MCPcopy
hub / github.com/xtermjs/xterm.js / scrollLines

Method scrollLines

src/browser/CoreBrowserTerminal.ts:877–885  ·  view source on GitHub ↗
(disp: number, suppressScrollEvent?: boolean)

Source from the content-addressed store, hash-verified

875 }
876
877 public scrollLines(disp: number, suppressScrollEvent?: boolean): void {
878 // All scrollLines methods need to go via the viewport in order to support smooth scroll
879 if (this._viewport) {
880 this._viewport.scrollLines(disp);
881 } else {
882 super.scrollLines(disp, suppressScrollEvent);
883 }
884 this.refresh(0, this.rows - 1);
885 }
886
887 public scrollPages(pageCount: number): void {
888 this.scrollLines(pageCount * (this.rows - 1));

Callers 6

openMethod · 0.95
scrollPagesMethod · 0.95
scrollToTopMethod · 0.95
scrollToBottomMethod · 0.95
scrollToLineMethod · 0.95
_keyDownMethod · 0.95

Calls 2

refreshMethod · 0.95
scrollLinesMethod · 0.65

Tested by

no test coverage detected