mirror of
https://github.com/neon443/ShhShell.git
synced 2026-11-30 20:54:51 +00:00
ok its fixed, but now the scrollback restore at startup causes a biit of text to be missed
This commit is contained in:
1 file changed
+1
-1
@@ -25,7 +25,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
||||
applySelectedTheme()
|
||||
|
||||
Task {
|
||||
// await restoreScrollback()
|
||||
await startFeedLoop()
|
||||
}
|
||||
}
|
||||
@@ -34,6 +33,7 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
||||
guard let scrollback = handler?.scrollback else { return }
|
||||
guard !scrollback.isEmpty else { return }
|
||||
|
||||
try? await Task.sleep(nanoseconds: 10_000_000)
|
||||
await MainActor.run {
|
||||
self.getTerminal().resetToInitialState()
|
||||
for line in scrollback {
|
||||
|
||||