Modify Python cmd module's history on Windows

50 views Asked by At

My Python program has an interactive command line implemented with cmd module.

How can I add commands to cmd history (so that it can be reached by cursor-up shortcut)?

Please, note the program runs on Windows so readline library tricks aren't relevant.

0

There are 0 answers