in reply to Getting output to terminal

It is possible that your program does write its output to a terminal window then terminate. The window closes before you have chance to read it. In this case, your program should either pause or prompt for operator acknowledgement before terminating.
Bill