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 | 149db209603c5de16d4135f1fdc4f19104974861 (patch) | |
tree | caf77c04c2c51502c0eccb026c0ae9ba869514ff /extension/src/terminal | |
parent | c46d16de43b7079a2dd030058682cd1af8844bf6 (diff) | |
download | sncontinue-149db209603c5de16d4135f1fdc4f19104974861.tar.gz sncontinue-149db209603c5de16d4135f1fdc4f19104974861.tar.bz2 sncontinue-149db209603c5de16d4135f1fdc4f19104974861.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, |