From 8ec477996cc3828733eec3371ad274c4b7f938f1 Mon Sep 17 00:00:00 2001 From: nuintun Date: Wed, 25 Nov 2015 14:33:14 +0800 Subject: [PATCH] update files --- static/js/terminal/lib/write.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/static/js/terminal/lib/write.js b/static/js/terminal/lib/write.js index ac6fd03..900852d 100644 --- a/static/js/terminal/lib/write.js +++ b/static/js/terminal/lib/write.js @@ -549,7 +549,7 @@ module.exports = function (Terminal){ break; // CSI Ps n Device Status Report (DSR). case 'n': - if (typeof deviceStatus === 'function') { + if (!this.prefix) { this.deviceStatus(this.params); } break; @@ -807,9 +807,6 @@ module.exports = function (Terminal){ }; Terminal.prototype.writeln = function (data){ - // at times spaces appear in between escape chars and fixIndent fails us, so we fix it here - data = data.replace(/ /g, ' '); - // adding empty char before line break ensures that empty lines render properly this.write(data + ' \r\n'); };