title: detect whether a program is being run via command prompt
body: <p>Is there a way to detect if a c# xamarin console library is being run or being run via a terminal? this is so i can add</p>
  
  <pre><code>console.read();
  </code></pre>
  
  <p>if the user is directly running the program so they can see the output of the program</p>