title: Simple and portable method for managing console cursors action in C++
body: <p>When dealing with console input (stdin,std::cin) is there a portable way in C++ to manage the various actions that a user may perform like:</p>
  
  <ol>
  <li>Backspace/Delete</li>
  <li>List item</li>
  <li>Left/Right arrow keys (moving cursor back/forth insert text)</li>
  </ol>
  
  <p>For example in windows when using std::cin (eg: std::cin >> s;), it allows for arrow keys, however when using the same bit of code on linux, the arrow keys are assumed as part of the input, the cursor is not moved around.</p>
  
  <p>I know of various TUI frameworks like curses and ncurses that provide such functionality however they are more than what is required.</p>
  
  <p>I'm hoping there's a simple solution based on the standard libraries, or even a lightweight open source library that might have a std::getline like feature that is portable across the more popular OSes.</p>