I remember seeing completed programs where you could backspace and delete text prompts. Usually, all text that is cout’ed is static and cannot be erased from the screen, but I want to be able to erase text that was output by the program (such as, for example, the program gives me a default name that I can accept, or delete and enter my own). I would imagine I could fake keyboard input to put up erasable text on the console, but is there a cleaner way to do it? Thanks.
I remember seeing completed programs where you could backspace and delete text prompts. Usually,
Share
If I understand you, you probably want something like GNU Readline