This commit is contained in:
Timothy Jaeryang Baek
2026-03-02 15:01:10 -06:00
parent 4f6cb771f1
commit 1a2b360d3d
4 changed files with 18 additions and 49 deletions
+10
View File
@@ -239,6 +239,16 @@
connect();
};
// Reconnect when the selected terminal changes
$: if ($selectedTerminalId !== undefined && term) {
// Clear the terminal screen and reconnect to the new server
disconnect();
term.clear();
if ($selectedTerminalId) {
connect();
}
}
onMount(() => {
initTerminal();
});