migueldeicaza / SwiftTerm

Xterm/VT100 Terminal emulator in Swift
MIT License
978 stars 145 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.