@xterm/xterm 6.1.0-beta.209 → 6.1.0-beta.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +5 -5
- package/lib/xterm.mjs.map +2 -2
- package/package.json +2 -2
- package/src/common/InputHandler.ts +7 -7
- package/src/common/Version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.210",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"ws": "^8.2.3",
|
|
120
120
|
"xterm-benchmark": "^0.3.1"
|
|
121
121
|
},
|
|
122
|
-
"commit": "
|
|
122
|
+
"commit": "802decb04617f2c0f032adb4579dda8ef9e6326f"
|
|
123
123
|
}
|
|
@@ -2415,7 +2415,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
2415
2415
|
color &= ~Attributes.RGB_MASK;
|
|
2416
2416
|
color |= AttributeData.fromColorRGB([c1, c2, c3]);
|
|
2417
2417
|
} else if (mode === 5) {
|
|
2418
|
-
color &= ~(Attributes.CM_MASK | Attributes.
|
|
2418
|
+
color &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2419
2419
|
color |= Attributes.CM_P256 | (c1 & 0xff);
|
|
2420
2420
|
}
|
|
2421
2421
|
return color;
|
|
@@ -2628,19 +2628,19 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
2628
2628
|
p = params.params[i];
|
|
2629
2629
|
if (p >= 30 && p <= 37) {
|
|
2630
2630
|
// fg color 8
|
|
2631
|
-
attr.fg &= ~(Attributes.CM_MASK | Attributes.
|
|
2631
|
+
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2632
2632
|
attr.fg |= Attributes.CM_P16 | (p - 30);
|
|
2633
2633
|
} else if (p >= 40 && p <= 47) {
|
|
2634
2634
|
// bg color 8
|
|
2635
|
-
attr.bg &= ~(Attributes.CM_MASK | Attributes.
|
|
2635
|
+
attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2636
2636
|
attr.bg |= Attributes.CM_P16 | (p - 40);
|
|
2637
2637
|
} else if (p >= 90 && p <= 97) {
|
|
2638
2638
|
// fg color 16
|
|
2639
|
-
attr.fg &= ~(Attributes.CM_MASK | Attributes.
|
|
2639
|
+
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2640
2640
|
attr.fg |= Attributes.CM_P16 | (p - 90) | 8;
|
|
2641
2641
|
} else if (p >= 100 && p <= 107) {
|
|
2642
2642
|
// bg color 16
|
|
2643
|
-
attr.bg &= ~(Attributes.CM_MASK | Attributes.
|
|
2643
|
+
attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2644
2644
|
attr.bg |= Attributes.CM_P16 | (p - 100) | 8;
|
|
2645
2645
|
} else if (p === 0) {
|
|
2646
2646
|
// default
|
|
@@ -2700,11 +2700,11 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
2700
2700
|
} else if (p === 39) {
|
|
2701
2701
|
// reset fg
|
|
2702
2702
|
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2703
|
-
attr.fg |= DEFAULT_ATTR_DATA.fg &
|
|
2703
|
+
attr.fg |= DEFAULT_ATTR_DATA.fg & Attributes.RGB_MASK;
|
|
2704
2704
|
} else if (p === 49) {
|
|
2705
2705
|
// reset bg
|
|
2706
2706
|
attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
|
2707
|
-
attr.bg |= DEFAULT_ATTR_DATA.bg &
|
|
2707
|
+
attr.bg |= DEFAULT_ATTR_DATA.bg & Attributes.RGB_MASK;
|
|
2708
2708
|
} else if (p === 38 || p === 48 || p === 58) {
|
|
2709
2709
|
// fg color 256 and RGB
|
|
2710
2710
|
i += this._extractColor(params, i, attr);
|
package/src/common/Version.ts
CHANGED