diff --git a/js/term/screen_parser.js b/js/term/screen_parser.js index 05abdad..c7c288c 100644 --- a/js/term/screen_parser.js +++ b/js/term/screen_parser.js @@ -7,6 +7,7 @@ const SEQ_SET_COLORS = 3 const SEQ_SET_ATTRS = 4 const SEQ_SET_FG = 5 const SEQ_SET_BG = 6 +const SEQ_SET_ATTR_0 = 7 function du (str) { return str.codePointAt(0) - 1 @@ -314,6 +315,10 @@ module.exports = class ScreenParser { attrs = data & 0xFFFF break + case SEQ_SET_ATTR_0: + attrs = 0 + break + case SEQ_SET_FG: data = strArray[ci++].codePointAt(0) - 1 fg = data & 0xFF