I am working on a small command line application based on the Cmd Python module. I can't see how to show the last command in the console prompt so that it can be edited by the user and re-submitted.
The question is not about how to store the last command. It is about how to shows it in the prompt and allow the user to edit it