This commit is contained in:
Timothy Jaeryang Baek committed 2026-03-02 15:01:10 -06:00
1 parent 4f6cb771f1
commit 1a2b360d3d
4 files changed
+18 -49

No files matched your search

+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();
});