title: Use keyboard as stdin
body: <p>I do not know how I can obtain user inputs from a keyboard and display those inputs to a terminal emulator (Real term).</p>
  
  <p>I usually do the following to set up the stdin.  However, I do realize that I cannot have the word KEYBOARD as a stream.</p>
  
  <pre><code>   FILE receive_str = FDEV_SETUP_STREAM(NULL, KEYBOARD , _FDEV_SETUP_READ);
     stdin = &amp;receive_str;
  </code></pre>
  
  <p>The program is compiled with AVR Studio 4.18 under Windows 7, targeting an ATmega 32 microcontroller.</p>