How to modify what already printed on the screen ?
Now we are implementing our own shell using C++.
What upseting us is the history command function, we use an array to store the history commands, and print the when receiving the up and down arrow buttons.
The problem is we cannot modify the history command already printed on the terminal, we even cannot move the cursur, let alone modifying the command.
Can anyone provide a solution?
Thanks.
|