I would like to emulate my programs terminal results on my local web server, but I dont know how to get the info from the terminal. My guess is im looking for a listener or console event but I havent found anything yet for it. I need to run a function and get the terminal data everytime a input, log, warn, error, ect... happends.