I need to run commands that require dynamic output in my CLI made in Swift. I've tried things like ShellOut and other suggestions on Stack Overflow, but they print the output once the command is done, not while it is going.
What I'm hoping for is something like system("vi README.md")
from C++, where it will run the command and print the outputs as it goes.
Without it, vi
prints Vim: Warning: Output is not to a terminal
then leaves a black screen and there is no way to exit the command.