Sounds more like curses than readline, then.

Either way, standard C++ doesn't support such things. cin is a linear stream - you cannot even seek in it.