From d0acaa789c66fc6178ed174f00a93ae41434eec2 Mon Sep 17 00:00:00 2001 From: nuintun Date: Mon, 30 Nov 2015 16:02:18 +0800 Subject: [PATCH] update files --- static/js/terminal/xterm.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/terminal/xterm.js b/static/js/terminal/xterm.js index 871a5b3..f756fc5 100644 --- a/static/js/terminal/xterm.js +++ b/static/js/terminal/xterm.js @@ -1032,9 +1032,15 @@ AnsiTerminal.prototype.toString = function (type){ var s = ''; if (type === 'html') { + var cell; + for (i = 0; i < this.screen.buffer.length; ++i) { for (j = 0; j < this.screen.buffer[i].cells.length; ++j) { - console.log(this.screen.buffer[i].cells[j]); + cell = this.screen.buffer[i].cells[j]; + + if (cell.c) { + console.log(cell.c, ': ', cell, ' - ', cell.getAttributes()); + } } } } else {