diff --git a/static/js/terminal/lib/refresh.js b/static/js/terminal/lib/refresh.js index bc0221c..4a123f6 100644 --- a/static/js/terminal/lib/refresh.js +++ b/static/js/terminal/lib/refresh.js @@ -34,7 +34,9 @@ module.exports = function (Terminal){ } for (; y <= end; y++) { + i = 0; out = ''; + attr = this.defAttr; row = y + this.ydisp; line = this.lines[row]; @@ -44,9 +46,6 @@ module.exports = function (Terminal){ x = -1; } - attr = this.defAttr; - i = 0; - for (; i < width; i++) { data = line[i][0]; ch = line[i][1];