It can be done with some assumptions, but brings some limitations which you may find too strict. So it is better to find a way how not to do that.
Using ncurses library you can get full control over terminal and read/write symbols to any position on the screen. But if you do so, you will be responsible for controlling it, this includes scrolling text. It will also not possible to scroll terminal up unless you implement it yourself. Beside that you will need to keep in mind screen size and process it's changes. Be aware that your program can also be launched under terminal that does not support that mode.
So, don't mess with it if you can and store user input inside your program instead of storing it on the screen.