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.
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.