improve restoring of scrollback and feed loop starting

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

No files matched your search

@@ -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()
}
}
+1 -1
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)
@@ -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
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.