title: my ncurses noecho() doesn't work
body: <p>For some reason my <code>noecho()</code> initialization is not working, until I give an input twice. The first time I press <code>h</code>, I get an <code>'h'</code> char on the screen. However, next pressed keys don't appear on the screen. How can I prevent ALL input from showing?</p>
  
  <pre><code>#include &lt;ncurses.h&gt;
  
  int main(){
      initscr();                      /* Start curses mode */        
      raw();                          /* prevents use of signals from ctl + c
      noecho();                       /* suppress echo */
  
      mvprintw(10,10,"Hello World!!");        /* Print */
      refresh();                      /* print it on real screen */
  
      while(true){
              char ch = getch();              /* wait for input */
              if(ch == 'q')
                      break;
              else if(ch == 'h'){
                      mvprintw(10,10,"Test");
              }
              else{
                      attroff(A_BOLD);
              }
      }
  
      endwin();                       /* end curses mode */
      return 0;
  }
  </code></pre>