Support selecting wide characters

This commit is contained in:
Daniel Imms
2017-05-25 19:34:32 -07:00
parent ec61f3acf0
commit 54e7f65d4e
2 changed files with 40 additions and 12 deletions
+2 -1
View File
@@ -75,8 +75,9 @@ export class InputHandler implements IInputHandler {
const removed = this._terminal.lines.get(this._terminal.y + this._terminal.ybase).pop();
if (removed[2] === 0
&& this._terminal.lines.get(row)[this._terminal.cols - 2]
&& this._terminal.lines.get(row)[this._terminal.cols - 2][2] === 2)
&& this._terminal.lines.get(row)[this._terminal.cols - 2][2] === 2) {
this._terminal.lines.get(row)[this._terminal.cols - 2] = [this._terminal.curAttr, ' ', 1];
}
// insert empty cell at cursor
this._terminal.lines.get(row).splice(this._terminal.x, 0, [this._terminal.curAttr, ' ', 1]);