mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Correct references to buffer lines
This commit is contained in:
committed by
Paris Kasidiaris
parent
83efc9afc4
commit
0d498fcd52
+1
-1
@@ -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.
|
||||
|
||||
@@ -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+$/, '');
|
||||
|
||||
Reference in New Issue
Block a user