diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-16 11:40:36 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-16 11:40:36 -0700 |
commit | e2f604767dea243d5d3a0d307c8c77d27e58ecac (patch) | |
tree | addb8de51c33e14a6a6209ac299dbed29478c964 /extension/src/terminal | |
parent | 06910ad84e8da33fa6d5fe66cd69293ce8986d84 (diff) | |
download | sncontinue-e2f604767dea243d5d3a0d307c8c77d27e58ecac.tar.gz sncontinue-e2f604767dea243d5d3a0d307c8c77d27e58ecac.tar.bz2 sncontinue-e2f604767dea243d5d3a0d307c8c77d27e58ecac.zip |
dlt demo work
Diffstat (limited to 'extension/src/terminal')
-rw-r--r-- | extension/src/terminal/terminalEmulator.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extension/src/terminal/terminalEmulator.ts b/extension/src/terminal/terminalEmulator.ts index 9d90b331..ff2060f8 100644 --- a/extension/src/terminal/terminalEmulator.ts +++ b/extension/src/terminal/terminalEmulator.ts @@ -76,7 +76,8 @@ export class CapturedTerminal { (lines.length > 0 && (last_line.includes("bash-") || last_line.includes(") $ ")) && last_line.includes("$")) || - (last_line.includes("]> ") && last_line.includes(") [")) + (last_line.includes("]> ") && last_line.includes(") [")) || + (last_line.includes(" (") && last_line.includes(")>")) ); } @@ -98,7 +99,7 @@ export class CapturedTerminal { if (!this.hasRunCommand) { this.hasRunCommand = true; // Let the first bash- prompt appear and let python env be opened - await this.waitForCommandToFinish(); + // await this.waitForCommandToFinish(); } if (this.commandQueue.length === 0) { @@ -154,7 +155,7 @@ export class CapturedTerminal { // Create the pseudo terminal this.ptyProcess = pty.spawn(this.shellCmd, [], { name: "xterm-256color", - cols: 160, // TODO: Get size of vscode terminal, and change with resize + cols: 250, // No way to get the size of VS Code terminal, or listen to resize, so make it just bigger than most conceivable VS Code widths rows: 26, cwd: getRootDir(), env, |