MULTI SESSIONS!!!

terminalviewcontainer has a dict of [handler, terminalView] with a uuid key
each session gets a new uuid, and on disconnect, the session is removed from terminalviewcontainer
sessions list view to reopen sessions
remove multiview
extracted terminalviewcontainer
This commit is contained in:
neon443
2025-06-29 15:40:46 +01:00
parent 870ebb6fcc
commit 331a921499
10 changed files with 133 additions and 20 deletions

View File

@@ -18,7 +18,9 @@ struct ShellView: View {
ZStack {
TerminalController(handler: handler, hostsManager: hostsManager)
.onAppear {
TerminalController.TerminalViewContainer.shared?.restoreScrollback()
if let sessionID = handler.sessionID {
TerminalViewContainer.shared[sessionID]?.terminalView.restoreScrollback()
}
}
Group {