Feature #9: An easy yet powerful setting system for customization
Add the command history
When using the MUD client, it's often very useful to comeback to a previous command entered just a few seconds ago, or earlier in time. Most MUD clients implement command history. In the text field (where users can type commands), the up arrow key and down arrow key are used to navigate through the history. Other clients have additional features (search in the commands, fast typing of several commands, and so on).
#1 Updated by Vincent Le Goff over 2 years ago
- % Done changed from 0 to 20
Starting with commit 947e7664159a2161fff118e904dba14a564265c9, when a user press the up arrow in the input field, he/she will see the previous command. Same thing for the down arrow. The history doesn't record retyped messages and it keeps the position in memory:
With a history looking like this:
myname mypassword look inventory equipment say good!
After entering the last command, when pressing up, the command "say good!" will be displayed. If going up again, the command "equipment" will be. If the user press enter on this command and then press down, he will be shown "say good!" again (the next command in the history list). The hidden information (password) are not stored in the history.
Please register to edit this issue