|
|
@ -7,6 +7,7 @@ const SEQ_SET_COLORS = 3 |
|
|
|
const SEQ_SET_ATTRS = 4 |
|
|
|
const SEQ_SET_ATTRS = 4 |
|
|
|
const SEQ_SET_FG = 5 |
|
|
|
const SEQ_SET_FG = 5 |
|
|
|
const SEQ_SET_BG = 6 |
|
|
|
const SEQ_SET_BG = 6 |
|
|
|
|
|
|
|
const SEQ_SET_ATTR_0 = 7 |
|
|
|
|
|
|
|
|
|
|
|
function du (str) { |
|
|
|
function du (str) { |
|
|
|
return str.codePointAt(0) - 1 |
|
|
|
return str.codePointAt(0) - 1 |
|
|
@ -314,6 +315,10 @@ module.exports = class ScreenParser { |
|
|
|
attrs = data & 0xFFFF |
|
|
|
attrs = data & 0xFFFF |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case SEQ_SET_ATTR_0: |
|
|
|
|
|
|
|
attrs = 0 |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
case SEQ_SET_FG: |
|
|
|
case SEQ_SET_FG: |
|
|
|
data = strArray[ci++].codePointAt(0) - 1 |
|
|
|
data = strArray[ci++].codePointAt(0) - 1 |
|
|
|
fg = data & 0xFF |
|
|
|
fg = data & 0xFF |
|
|
|