re add the fallback thing,its what adds it to container lol

This commit is contained in:
neon443
2025-07-04 15:56:16 +01:00
parent 2aa3d4cdfa
commit 27e75285fe
2 changed files with 9 additions and 4 deletions

View File

@@ -37,7 +37,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
await MainActor.run {
self.getTerminal().resetToInitialState()
for line in scrollback {
print("scrollbak \(line)")
self.feed(text: line)
}
self.setNeedsLayout()
@@ -50,7 +49,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
while handler.connected {
if let read = handler.readFromChannel() {
await MainActor.run {
print("live \(read)F")
self.feed(text: read)
}
} else {

View File

@@ -147,12 +147,19 @@ struct ShellTabView: View {
.id(selectedID)
.transition(.opacity)
} else {
Text("No Session")
if let handler {
ShellView(
handler: handler,
hostsManager: hostsManager
)
.onAppear {
if selectedID == nil {
selectedID = handler?.sessionID
selectedID = handler.sessionID
}
}
} else {
Text("No Session")
}
}
}
}