mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
re add the fallback thing,its what adds it to container lol
This commit is contained in:
@@ -37,7 +37,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
|||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
self.getTerminal().resetToInitialState()
|
self.getTerminal().resetToInitialState()
|
||||||
for line in scrollback {
|
for line in scrollback {
|
||||||
print("scrollbak \(line)")
|
|
||||||
self.feed(text: line)
|
self.feed(text: line)
|
||||||
}
|
}
|
||||||
self.setNeedsLayout()
|
self.setNeedsLayout()
|
||||||
@@ -50,7 +49,6 @@ final class SSHTerminalDelegate: TerminalView, Sendable, @preconcurrency Termina
|
|||||||
while handler.connected {
|
while handler.connected {
|
||||||
if let read = handler.readFromChannel() {
|
if let read = handler.readFromChannel() {
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
print("live \(read)F")
|
|
||||||
self.feed(text: read)
|
self.feed(text: read)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -147,12 +147,19 @@ struct ShellTabView: View {
|
|||||||
.id(selectedID)
|
.id(selectedID)
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
} else {
|
} else {
|
||||||
Text("No Session")
|
if let handler {
|
||||||
|
ShellView(
|
||||||
|
handler: handler,
|
||||||
|
hostsManager: hostsManager
|
||||||
|
)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
if selectedID == nil {
|
if selectedID == nil {
|
||||||
selectedID = handler?.sessionID
|
selectedID = handler.sessionID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Text("No Session")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user