Recall previous inputs with up/down arrows - #1
Conversation
865682b to
87e69cbCompare1a391c1 to
ffcd692Comparef252a9d to
1a3d347Compareecm-pushbx
commented
Apr 20, 2021
After implementing my own history recall feature in lDebug I compared yours in this PR to mine. Differences:
Similarities also include rejecting empty lines and those duplicating the prior line. |
Correction: It appears your patch does away with the interrupt 21h service 0Ah call entirely and always uses interrupt 16h to read input. In my implementation DOS application terminal input is still done with the DOS service by default, which means the debugger's line history is not available. (I do enter received lines into the history buffer regardless.) And if |
8ace82c to
205925dCompare
This patch implements recalling previously typed commands with the up and down arrow keys, as is common in most shells and other debuggers.
Binary size is increased by 244 bytes and memory requirement by 516 bytes (adjustable with
LINE_HISTORY_LEN).