title: getch and putchar not working without return
body: <p>I have been trying to get <code>getch</code> to work in another program with no success. So I have made the most basic program I can using <code>getch</code> the way I want it to work in the main program.</p>
  
  <p>I have researched the need for <code>noecho</code>, <code>cbreak</code>, <code>initscr</code> and <code>nodelay</code>, I have also tried using <code>newscr()</code> but to no success.</p>
  
  <p>The problem I am having is that the chars aren't being printed to the screen till I hit "enter", when they should be <code>put</code> to the screen every loop. Why is this happening? Also the cursor doesn't return to the left of the screen at the new line. eg.</p>
  
  <pre><code>abc  
     def
        ghi
  </code></pre>
  
  <p>I have looked for the answer but am stumped again...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;ncurses.h&gt;
  
  int main()
    {
       initscr();cbreak(); noecho();nodelay(stdscr,0);
      char c ;
      while((c=getch())!=EOF){
      putchar(c);}
  
      return 0;
    }
  </code></pre>