nskins / goby

Command-line role-playing game framework
MIT License
122 stars 56 forks source link

Remember previous commands #66

Closed nskins closed 7 years ago

nskins commented 7 years ago

Maintain a history of previous commands so that the user can use the up and down arrow keys to use scroll through those commands and re-use them. The data structure maintaining the previous commands does not need to be stored on disk; for now, it should be only available in the running process's address space.

Basically, it should have the same behavior as that in the Shell, but it doesn't have to be persistent across separate processes.