System/Libraries/Stdio: Implement shell command autocomplete

This commit is contained in:
Alec Murphy 2025-03-26 11:27:53 -04:00
parent ad4bc00396
commit ccac8b2baa
2 changed files with 122 additions and 4 deletions

View file

@ -223,8 +223,7 @@ I64 @shell_input_loop(@shell* sh)
while (!exit) {
@shell_update_prompts(sh);
Stdio.WriteLine(sh, &sh->PS1);
Stdio.ReadLine(sh, &buf);
Stdio.ReadLine(sh, sh->PS1, buf);
@shell_history_append(sh, &buf);
argv = @shell_parse_args(sh, &buf, &argc);