Skip to content

Commit 8eb57ec

Browse files
committed
Terminal control fixes
1 parent 8738c0a commit 8eb57ec

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/src/setupCommands.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ export function setupCommands(context: ExtensionContext) {
3737
});
3838
state.terminal = window.createTerminal("Sketch");
3939
terminal = state.terminal;
40+
// Show the terminal panel the first time
41+
terminal.show(true);
42+
} else {
43+
// Send the command to the terminal
44+
terminal.sendText('\x03', false);
4045
}
4146

42-
// Show the terminal panel
43-
terminal.show(true);
44-
4547
// clear the terminal
4648
terminal.sendText("clear", true);
4749

0 commit comments

Comments
 (0)