|
|
@ -276,10 +276,8 @@ class ScrollingTerminal { |
|
|
|
data += encodeAsCodePoint(25) |
|
|
|
data += encodeAsCodePoint(25) |
|
|
|
data += encodeAsCodePoint(80) |
|
|
|
data += encodeAsCodePoint(80) |
|
|
|
data += encodeAsCodePoint(this.theme) |
|
|
|
data += encodeAsCodePoint(this.theme) |
|
|
|
data += encodeAsCodePoint(this.defaultFG & 0xFFFF) |
|
|
|
data += this.encodeColor(this.defaultFG) |
|
|
|
data += encodeAsCodePoint(this.defaultFG >> 16) |
|
|
|
data += this.encodeColor(this.defaultBG) |
|
|
|
data += encodeAsCodePoint(this.defaultBG & 0xFFFF) |
|
|
|
|
|
|
|
data += encodeAsCodePoint(this.defaultBG >> 16) |
|
|
|
|
|
|
|
let attributes = +this.cursor.visible |
|
|
|
let attributes = +this.cursor.visible |
|
|
|
attributes |= (3 << 5) * +this.trackMouse // track mouse controls both
|
|
|
|
attributes |= (3 << 5) * +this.trackMouse // track mouse controls both
|
|
|
|
attributes |= 3 << 7 // buttons/links always visible
|
|
|
|
attributes |= 3 << 7 // buttons/links always visible
|
|
|
@ -290,7 +288,7 @@ class ScrollingTerminal { |
|
|
|
getButtons () { |
|
|
|
getButtons () { |
|
|
|
let data = 'B' |
|
|
|
let data = 'B' |
|
|
|
data += encodeAsCodePoint(this.buttonLabels.length) |
|
|
|
data += encodeAsCodePoint(this.buttonLabels.length) |
|
|
|
data += this.buttonLabels.map(x => x + '\x01').join('') |
|
|
|
data += this.buttonLabels.map(x => `\x01${x}\x01`).join('') |
|
|
|
return data |
|
|
|
return data |
|
|
|
} |
|
|
|
} |
|
|
|
getTitle () { |
|
|
|
getTitle () { |
|
|
|