title: Console Application
body: <p>Edit:</p>
  
  <p>I don't know what this user originally wanted, and hopefully they'll edit their question to let us know, but otherwise, let's use this question to answer (or give links to) the following common console window issues:</p>
  
  <ul>
  <li>How do you capture the output of a console application in your program (for instance, running a build process and getting the output in your IDE)?</li>
  <li>How do you get your console application to hang around long enough to see the output when you hit "run" in the IDE?  (ie, getch for C, some IDEs have options to set, what common/popular pause and wait for keypress routines do you use to keep the console window open long enough to see the output?  This applies to lots of languages - list your method)</li>
  </ul>
  
  <p>Original question:</p>
  
  <blockquote>
    <p>How to view console application output
    screen(black screen).Please mention in
    detail.</p>
  </blockquote>