[readline] Add an optional timeout to readline_history()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-04-23 12:27:57 +01:00
parent 56f7d44fde
commit b2501dd122
4 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ int shell ( void ) {
/* Read and execute commands */
do {
readline_history ( shell_prompt, NULL, &history, &line );
readline_history ( shell_prompt, NULL, &history, 0, &line );
if ( line ) {
rc = system ( line );
free ( line );