improve restoring of scrollback and feed loop starting

This commit is contained in:
neon443
2025-07-09 19:55:31 +01:00
parent 29b9744475
commit fa8a381ffb
3 changed files with 2 additions and 6 deletions

View File

@@ -18,7 +18,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
self.init(frame: frame)
self.handler = handler
self.hostsManager = hostsManager
//fonts here yayy
}
override func didMoveToWindow() {
@@ -29,9 +28,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
font = UIFont(name: hostsManager.selectedFont, size: UIFont.systemFontSize)!
}
applySelectedTheme()
// self.frame.size = getOptimalFrameSize().size
// getOptimalFrameSize().width.
startFeedLoop()
}
}

View File

@@ -77,7 +77,7 @@ struct ShellTabView: View {
Spacer()
}
.padding(.horizontal, 10)
.padding(.bottom, 10)
.padding(.vertical, 5)
.background(hostsManager.tint, ignoresSafeAreaEdges: .all)
.frame(height: 30)

View File

@@ -19,7 +19,6 @@ struct TerminalController: UIViewRepresentable {
func makeUIView(context: Context) -> TerminalView {
if let sessionID = handler.sessionID {
if let existing = container.sessions[sessionID] {
existing.terminalView.startFeedLoop()
return existing.terminalView
}
}