SCP: Allow command switches -N and -Y to specify the answer to Yes/No prompts during command execution.
This commit is contained in:
parent
ad3dc29d5d
commit
b942bac409
1 changed files with 4 additions and 0 deletions
4
scp.c
4
scp.c
|
@ -7201,6 +7201,10 @@ t_stat get_yn (const char *ques, t_stat deflt)
|
|||
{
|
||||
char cbuf[CBUFSIZE], *cptr;
|
||||
|
||||
if (sim_switches & SWMASK ('Y'))
|
||||
return TRUE;
|
||||
if (sim_switches & SWMASK ('N'))
|
||||
return FALSE;
|
||||
if (sim_rem_cmd_active_line != -1)
|
||||
return deflt;
|
||||
cptr = read_line_p (ques, cbuf, sizeof(cbuf), stdin);
|
||||
|
|
Loading…
Add table
Reference in a new issue