mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user