]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/Interfaces.ts
Start isolating buffer attributes into Buffer class
[mirror_xterm.js.git] / src / Interfaces.ts
index 039e8a3f3945e429f716f3bd945155f588b14a11..779f279d96d26bdf08644a2ec8c2bd55cef51444 100644 (file)
@@ -38,6 +38,8 @@ export interface ITerminal {
   y: number;
   defAttr: number;
   scrollback: number;
+  buffer: any;  // This should be a `Buffer` class, but it would result in circular dependency
+  viewport: any;  // This should be a `Viewport` class, but it would result in circular dependency
 
   /**
    * Emit the 'data' event and populate the given data.
@@ -49,6 +51,8 @@ export interface ITerminal {
   cancel(ev: Event, force?: boolean);
   log(text: string): void;
   emit(event: string, data: any);
+  reset(): void;
+  showCursor(): void;
 }
 
 export interface ISelectionManager {