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.