title: Prompt user to fill in a template?
body: <p>I've never been able to find anything about this in any language, but what I want to do seems rather simple to me.</p>
  <p>I want to prompt the user for input, but have them fill in a sort of template. Let's use a simple <code>DD-MM-YYYY</code> date as an example.</p>
  <pre><code>[█ -  -    ]
  </code></pre>
  <p><code>█</code> is where the user writes.
  As they write, the <code>[</code> and <code>-</code> stay where they are, with the cursor jumping past them, and hitting enter submits.</p>
  <p>I'm not expecting anyone to write all of this for me, but <code>cin</code> and <code>cout</code> seem to be too crude a tools to do this, and so I'm wondering where I should even start, if not there.</p>
  <p>Is there something that already does this, or at least something that gives me more control of the cursor to allow me to write it myself?
  I <em>do not</em> want to be drawing a full-on TUI with windows and boarders and colors, so ncurses would just get in the way. I just want a single-line text field that returns the input.</p>
  <p>EDIT: The most promising non-ncruses alternative for a helpful library seems to be <a href="https://github.com/jupyter-xeus/cpp-terminal" rel="nofollow noreferrer">Terminal</a>.</p>