Skip to content

Commit

Permalink
Fix command prompt showing when using file input
Browse files Browse the repository at this point in the history
Commit dd6a761 removes `set_echo(0)` when `infd` is not the standard
input, which will show command prompt while executing command from input
files. Adding it back fixes the issue.
  • Loading branch information
millaker committed Mar 6, 2024
1 parent 9a135e0 commit adecb4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions console.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ static int cmd_select(int nfds,
interpret_cmd(cmdline);
fflush(stdout);
} else {
set_echo(0);
char *cmdline = readline();
if (cmdline)
interpret_cmd(cmdline);
Expand Down

0 comments on commit adecb4f

Please sign in to comment.