title: Providing default value of cin input
body: <p>My app reads user input using <code>std::cin</code> stream.
  In one place I would like to provide default input and let the user to accept it as it is (by pressing enter) or modify it before continuing (by removing old characters with backspace and adding new text).</p>
  
  <p>I'm aware that characters can be placed directly into <code>cin.rdbuf</code>, but that's not exactly what I want to achieve.
  I would like to put characters into console window in the place where console's cursor is when waiting for user input and do no read them before user will accept them. User should be also able to remove them and write their own text.</p>
  
  <p>Can something like this be achieve using <code>cin</code> or do I have to simulate this by reading single characters and repainting content of the console?</p>