migueldeicaza / SwiftTerm

Xterm/VT100 Terminal emulator in Swift
MIT License
993 stars 146 forks source link

Capturing the shell output in SwiftUI #307

Closed alealealedocebo closed 1 year ago

alealealedocebo commented 1 year ago

Hi,

another dumb question.

using the LocalProcessTerminalView view I can access to the terminal to send a byte array to the shell rendered in the terminal (I use zsh).

But how can I capture the stdout of that shell inside my Swift app?

migueldeicaza commented 1 year ago

Please use the discussions for this.