@travetto/terminal 3.0.0-rc.4 → 3.0.0-rc.5
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/package.json +1 -1
- package/src/color-output.ts +1 -1
- package/src/terminal.ts +4 -1
package/package.json
CHANGED
package/src/color-output.ts
CHANGED
|
@@ -46,7 +46,7 @@ export class ColorOutputUtil {
|
|
|
46
46
|
): Promise<TermColorScheme | undefined> {
|
|
47
47
|
let color = await query();
|
|
48
48
|
if (!color && env) {
|
|
49
|
-
const [bg] = env.split(';');
|
|
49
|
+
const [, bg] = env.split(';');
|
|
50
50
|
color = ColorDefineUtil.rgbFromAnsi256(+bg);
|
|
51
51
|
}
|
|
52
52
|
if (color) {
|
package/src/terminal.ts
CHANGED
|
@@ -99,7 +99,10 @@ export class Terminal implements TermState {
|
|
|
99
99
|
|
|
100
100
|
async reset(): Promise<void> {
|
|
101
101
|
await this.#query.close();
|
|
102
|
-
|
|
102
|
+
if (this.interactive) {
|
|
103
|
+
await this.writer().reset().commit();
|
|
104
|
+
}
|
|
105
|
+
return;
|
|
103
106
|
}
|
|
104
107
|
|
|
105
108
|
getCursorPosition(): Promise<TermCoord> {
|