title: win32 console - form example!
body: <p>I'm trying to build a simple form in a c++ win32 console application.
  instead of using cin and keep prompting the user to enter the details, i would like to display the form labels then using the tab key, allow the user to tab through.</p>
  
  <p>What is the simplest way of doing this, without having to use ncurses?</p>
  
  <p>all I need is cout the below all at once:</p>
  
  <pre><code>Name:
  Username:
  Email:
  </code></pre>
  
  <p>set the cursor position next to name Field, then each time you hit tab, i gotoxy, and set the cursor at the next position, then set the the cin to the next variable
  eg. 
  at startup</p>
  
  <pre><code>gotoxy(nameX, nameY);
  cin &gt;&gt; name;
  </code></pre>
  
  <p>Hit Tab/enter</p>
  
  <pre><code>gotoxy(usernameX, usernameY);
  cin &gt;&gt; username;
  </code></pre>
  
  <p>Hit Tab/enter</p>
  
  <pre><code>gotoxy(emailX, emailY);
  cin &gt;&gt; email;
  </code></pre>
  
  <p>is this even doable?</p>
  
  <p>I tried while loops with, GetAsyncKeyState, and keyboard events, but the cin is not working properly in that loop.</p>
  
  <p>is there any good example for a super simple form, or reference for doing that?
  I know how to SetConsoleCursorPosition, but how to implement the tabbing while still being able to capture cin?</p>
  
  <p>thanks</p>