title: How to position the input text cursor in C?
body: <p>Here I have a very simple program:</p>
  
  <pre><code> printf("Enter your number in the box below\n");
   scanf("%d",&amp;number);
  </code></pre>
  
  <p>Now, I would like the output to look like this:</p>
  
  <pre><code> Enter your number in the box below
   +-----------------+
   | |*|             |
   +-----------------+
  </code></pre>
  
  <p>Where, |*| is the blinking cursor where the user types their value.</p>
  
  <p>Since C is a linear code, it won't print the box art, then ask for the output, it will print the top row and the left column, then after the input print the bottom row and right column.</p>
  
  <p>So, my question is, could I possibly print the box first, then have a function take the cursor back into the box?</p>