From b922f54024f2e80427eae939647273d858c80fa8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 20 Aug 2017 20:34:18 -0600 Subject: [PATCH] Remove extra reset in ESC seq --- core/ansi_term.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/ansi_term.js b/core/ansi_term.js index 7902d26c..33981f02 100644 --- a/core/ansi_term.js +++ b/core/ansi_term.js @@ -399,10 +399,6 @@ function getSGRFromGraphicRendition(graphicRendition, initialReset) { } }); - if(!styleCount) { - sgrSeq.push(0); - } - if(graphicRendition.fg) { sgrSeq.push(graphicRendition.fg); } @@ -411,7 +407,7 @@ function getSGRFromGraphicRendition(graphicRendition, initialReset) { sgrSeq.push(graphicRendition.bg); } - if(initialReset) { + if(0 === styleCount || initialReset) { sgrSeq.unshift(0); }