mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 15:46:31 +00:00
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
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…
x
Reference in New Issue
Block a user