| Current Path : /var/www/html/test/wetty2/node_modules/xterm/lib/ |
| Current File : /var/www/html/test/wetty2/node_modules/xterm/lib/WindowsMode.js |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BufferLine_1 = require("./core/buffer/BufferLine");
function applyWindowsMode(terminal) {
return terminal.onLineFeed(function () {
var line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1);
var lastChar = line.get(terminal.cols - 1);
var nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y);
nextLine.isWrapped = (lastChar[BufferLine_1.CHAR_DATA_CODE_INDEX] !== BufferLine_1.NULL_CELL_CODE && lastChar[BufferLine_1.CHAR_DATA_CODE_INDEX] !== BufferLine_1.WHITESPACE_CELL_CODE);
});
}
exports.applyWindowsMode = applyWindowsMode;
//# sourceMappingURL=WindowsMode.js.map