@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/terminal",
3
- "version": "3.0.0-rc.4",
3
+ "version": "3.0.0-rc.5",
4
4
  "description": "General terminal support",
5
5
  "keywords": [
6
6
  "terminal",
@@ -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
- return this.writer().reset().commit();
102
+ if (this.interactive) {
103
+ await this.writer().reset().commit();
104
+ }
105
+ return;
103
106
  }
104
107
 
105
108
  getCursorPosition(): Promise<TermCoord> {