Actually, command line editing and history recall for such programs is in the console. That's where the actual mechanism of DOSKEY lives. That's where history recall lives, governed by SetConsoleHistoryInfo().
One can of course write command interpreters that have their own editing systems, rather than use the one provided by the console. JP Software has done this for many years.
One can of course write command interpreters that have their own editing systems, rather than use the one provided by the console. JP Software has done this for many years.
* https://jpsoft.com/help/index.htm?cmdhist.htm
But tofflos is asking about improving the one that is in the console.