title: Eclipse CDT and getch()
body: <p>I've tried googling an answer for my problem, but I cannot seem to find one.</p>
  
  <p>Here's my very simple test code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;conio.h&gt;
  
  int main(void) {
      char ch;
  
      printf("Enter character: ");
      ch = getch();
      printf("%c", ch);
  
      return 0;
  }
  </code></pre>
  
  <p>When I try to run this in Eclipse, I can't even get the first printf line to show up, and performing any keypresses does nothing. </p>
  
  <p>I've also tried doing fflush(stdout) and fflush(stdin), but the program does not as I want it to. If I try this on Visual Studio, it works perfectly.</p>
  
  <p>Does anyone have an idea why? Thanks. </p>