Support wide character drawing and cursors

This commit is contained in:
Daniel Imms
2017-09-02 10:17:49 -07:00
parent ae72e1c51e
commit 32a3c9812d
3 changed files with 73 additions and 28 deletions
+3 -1
View File
@@ -100,7 +100,9 @@ export class ForegroundRenderLayer extends BaseRenderLayer {
this.drawBottomLineAtCell(x, y);
}
this.drawChar(terminal, char, code, x, y, fg);
const width: number = charData[CHAR_DATA_WIDTH_INDEX];
this.drawChar(terminal, char, code, width, x, y, fg);
this._ctx.restore();
}