]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/Parser.ts
Fix SelectionManager initializing
[mirror_xterm.js.git] / src / Parser.ts
index 00d574eec80871e9063feb26d0ebcec6ee7b19f2..6679e366d14af8d8c8762a364425405da5168650 100644 (file)
@@ -52,7 +52,7 @@ escapedStateHandler['c'] = (parser, terminal) => {
 };
 escapedStateHandler['E'] = (parser, terminal) => {
   // ESC E Next Line ( NEL is 0x85).
-  terminal.x = 0;
+  terminal.buffer.x = 0;
   terminal.index();
   parser.setState(ParserState.NORMAL);
 };
@@ -499,9 +499,9 @@ export class Parser {
                   // DECSTBM
                   case 'r':
                     pt = ''
-                      + (this._terminal.scrollTop + 1)
+                      + (this._terminal.buffer.scrollTop + 1)
                       + ';'
-                      + (this._terminal.scrollBottom + 1)
+                      + (this._terminal.buffer.scrollBottom + 1)
                       + 'r';
                     break;