title: R - readline-prompt over multiple lines
body: <p>I'm trying to implement a simple selection using the console. This is the code:</p>
  
  <pre><code>n &lt;- readline(prompt = "1 - selection A\n2 - selection B\nInput: ")
  </code></pre>
  
  <p>And the whole thing is working, but the input is written at the end of the first line, after 'selection A'. I'd like the user input to be at the end of the prompt (after 'Input: '). Thanks!</p>
  
  <p><a href="https://i.stack.imgur.com/YZyuv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YZyuv.png" alt="enter image description here"></a></p>