getting command line stdout to populate terminal