Support basic cursor

This commit is contained in:
Daniel Imms
2017-08-31 17:02:24 -07:00
parent d3650d9d80
commit fd18f7cba7
4 changed files with 81 additions and 3 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export class ForegroundRenderLayer implements IDataRenderLayer {
this._ctx.font = `${16 * window.devicePixelRatio}px courier`;
for (let y = startRow; y <= endRow; y++) {
let row = y + terminal.buffer.ydisp;
let line = terminal.buffer.lines.get(row);
const row = y + terminal.buffer.ydisp;
const line = terminal.buffer.lines.get(row);
for (let x = 0; x < terminal.cols; x++) {
const charData = line[x];