]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Correct references to buffer lines
authorParis Kasidiaris <paris@sourcelair.com>
Sun, 9 Jul 2017 08:06:10 +0000 (11:06 +0300)
committerParis Kasidiaris <pariskasidiaris@gmail.com>
Sun, 16 Jul 2017 00:47:15 +0000 (03:47 +0300)
src/Buffer.ts
src/test/escape-sequences-test.js

index 65e1d99d878bc91c4943d6b4fc8b66296655f0fd..51ee0f18cd0c41648275064db93d0bae61b98045 100644 (file)
@@ -9,7 +9,7 @@ import { CircularList } from './utils/CircularList';
  * This class represents a terminal buffer (an internal state of the terminal)/
  */
 export class Buffer {
-  public lines: CircularList<string>;
+  public lines: CircularList<[string, number, string]>;
 
   /**
    * Create a new Buffer.
index c3831580dc4913f22f40b5168c036457a6cd3df8..098b5c5b4e405eeeb38a3ac27d7d8613e043d85d 100644 (file)
@@ -65,7 +65,7 @@ function terminalToString(term) {
   for (var line = term.ybase; line < term.ybase + term.rows; line++) {
     line_s = '';
     for (var cell=0; cell<term.cols; ++cell) {
-      line_s += term.lines.get(line)[cell][1];
+      line_s += term.buffer.lines.get(line)[cell][1];
     }
     // rtrim empty cells as xterm does
     line_s = line_s.replace(/\s+$/, '');