title: How to include conio.h in cygwin?
body: <p>I want use getch(); in cygwin.
  So i search the way,add the code "conio.h".</p>
  
  <pre><code>#include &lt;termios.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;stdio.h&gt;
  
  /* reads from keypress, doesn't echo */
  int getch(void)
  {
      struct termios oldattr, newattr;
      int ch;
      tcgetattr( STDIN_FILENO, &amp;oldattr );
      newattr = oldattr;
      newattr.c_lflag &amp;= ~( ICANON | ECHO );
      tcsetattr( STDIN_FILENO, TCSANOW, &amp;newattr );
      ch = getchar();
      tcsetattr( STDIN_FILENO, TCSANOW, &amp;oldattr );
      return ch;
  }
  
  /* reads from keypress, echoes */
  int getche(void)
  {
      struct termios oldattr, newattr;
      int ch;
      tcgetattr( STDIN_FILENO, &amp;oldattr );
      newattr = oldattr;
      newattr.c_lflag &amp;= ~( ICANON );
      tcsetattr( STDIN_FILENO, TCSANOW, &amp;newattr );
      ch = getchar();
      tcsetattr( STDIN_FILENO, TCSANOW, &amp;oldattr );
      return ch;
  }
  </code></pre>
  
  <p>After save this code "conio.h",i can't use getch();.
  the error message is
   fatal error: conio.h: No such file or directory
   #include 
                     ^
  compilation terminated.</p>
  
  <p>How to solve it?</p>