write to channel works!!!!!!!!!!!!!!!!!

removing the read funciton call fixed it
This commit is contained in:
neon443
2025-06-21 12:58:08 +01:00
parent 5fafc52913
commit c33e22cd3d
2 changed files with 3 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ class SSHHandler: ObservableObject {
withAnimation { connected = false }
withAnimation { testSuceeded = nil }
session = nil
terminal = ""
// host.key = nil
}
@@ -336,7 +337,7 @@ class SSHHandler: ObservableObject {
var nwritten: Int
// readFromChannel()
nbytes = Int(read(0, &buffer, buffer.count))
// nbytes = Int(read(0, &buffer, buffer.count))
nbytes = buffer.count
guard nbytes > 0 else {
return