title: Linux equivalent for conio.h getch()
body: <p>Previously I use c++/c compilers on windows which support the <code>#include &lt;conio.h&gt;</code> header file but on Linux where I have </p>
  
  <pre><code>gcc (Debian 4.9.2-10) 4.9.2
  Copyright (C) 2014 Free Software Foundation, Inc.
  This is free software...
  </code></pre>
  
  <p>I want a function which works exactly as <code>getch()</code>. I don't know why my compiler doesn't support the header file <code>#include &lt;conio.h&gt;</code></p>
  
  <p>After searching on net I got <a href="https://stackoverflow.com/questions/1377403/alternative-function-in-iostream-h-for-getch-of-conio-h">this</a> which says that <code>cin.get();</code> is probably the closest equivalent but these two are different in the way that if we write <code>getch()</code> it does not display the character entered on the console whereas if we enter a character using <code>cin.get()</code> it displays the character on the console. I don't want the character to be displayed on the console.</p>
  
  <p>using <code>getchar()</code> also displays the character on the console.</p>