mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
improve restoring of scrollback and feed loop starting
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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