title: How to determine whether an console application started from within a console window?
body: <p>I have a little console application which outputs a single line. When I run the program from within a console instance I am able to see the result because the command pormpt reappers after completion of the program. But when I start the program from the "Run"-window ([Win]+[R]) the console window instantly disappears (because I have not built in a break and i don't want to build in a break unless it isn't launched by the commandline).</p>
  
  <p>So how can I determine if the program was started from a command line or directly?</p>