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.init(frame: frame)
|
||||||
self.handler = handler
|
self.handler = handler
|
||||||
self.hostsManager = hostsManager
|
self.hostsManager = hostsManager
|
||||||
//fonts here yayy
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func didMoveToWindow() {
|
override func didMoveToWindow() {
|
||||||
@@ -29,9 +28,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
|||||||
font = UIFont(name: hostsManager.selectedFont, size: UIFont.systemFontSize)!
|
font = UIFont(name: hostsManager.selectedFont, size: UIFont.systemFontSize)!
|
||||||
}
|
}
|
||||||
applySelectedTheme()
|
applySelectedTheme()
|
||||||
|
startFeedLoop()
|
||||||
// self.frame.size = getOptimalFrameSize().size
|
|
||||||
// getOptimalFrameSize().width.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ struct ShellTabView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 10)
|
.padding(.horizontal, 10)
|
||||||
.padding(.bottom, 10)
|
.padding(.vertical, 5)
|
||||||
.background(hostsManager.tint, ignoresSafeAreaEdges: .all)
|
.background(hostsManager.tint, ignoresSafeAreaEdges: .all)
|
||||||
.frame(height: 30)
|
.frame(height: 30)
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ struct TerminalController: UIViewRepresentable {
|
|||||||
func makeUIView(context: Context) -> TerminalView {
|
func makeUIView(context: Context) -> TerminalView {
|
||||||
if let sessionID = handler.sessionID {
|
if let sessionID = handler.sessionID {
|
||||||
if let existing = container.sessions[sessionID] {
|
if let existing = container.sessions[sessionID] {
|
||||||
existing.terminalView.startFeedLoop()
|
|
||||||
return existing.terminalView
|
return existing.terminalView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user