I have a python program that I run from the console on a raspberry pi 4.
In the program, there are some events that generate some output on the terminal.
First question: is there any option to display all the terminal output in a listbox on my python program?
Maybe writing the console output to a file and then read it from the file to display it on my program.
I read about tee
but I’m not sure how it works and how it’s possible to redirect only that terminal output and not all the terminal activity going in the background.
Second question: If I have more than one terminal open, will that affect the process?
Thanks !