Skip to content

Commit 612a98e

Browse files
committed
fix(console): fix console output
1 parent 426ce0b commit 612a98e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/api/process.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,16 @@ function executeInContainer(name: string, command: string): Observable<ProcessOu
7777
return;
7878
}
7979

80+
if (data.includes('> read escape sequence')) {
81+
return;
82+
}
83+
8084
if (data.includes(command)) {
8185
data = bold(yellow(command)) + '\n';
8286
}
8387

84-
if (!data.trim().includes('logout') && !data.trim().includes('exit')) {
88+
if (!data.trim().includes('logout') && !data.trim().includes('exit') &&
89+
!data.trim().includes('read escape sequence')) {
8590
observer.next({ type: 'data', data: data });
8691
}
8792
}
@@ -101,7 +106,6 @@ function executeInContainer(name: string, command: string): Observable<ProcessOu
101106

102107
function startContainer(name: string, image: string, vars = []): Observable<ProcessOutput> {
103108
return new Observable(observer => {
104-
console.log(vars);
105109
const args = ['run', '--privileged', '-dit'].concat(vars).concat('--name', name, image);
106110
const process = nodePty.spawn('docker', args);
107111

0 commit comments

Comments
 (0)