]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/Buffer.ts
Move `scrollTop` and `scrollBottom` into `Buffer`
[mirror_xterm.js.git] / src / Buffer.ts
index 78882b7147c8aaf1bff05ab86c7bfb99282b581d..e36ff99e6d573ee5b31aed88a1e3fb93e44f1013 100644 (file)
@@ -10,7 +10,6 @@ import { CircularList } from './utils/CircularList';
  */
 export class Buffer {
   public lines: CircularList<any>;
-  private _tabs: any;
 
   /**
    * Create a new Buffer.
@@ -26,7 +25,11 @@ export class Buffer {
     public ybase: number = 0,
     public y: number = 0,
     public x: number = 0,
+    public scrollBottom: number = 0,
+    public scrollTop: number = 0,
+    public tabs: any = {},
   ) {
     this.lines = new CircularList(this.terminal.scrollback);
+    this.scrollBottom = this.terminal.rows - 1;
   }
 }