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.