From b942bac409d51160aea62ee9679b2f746b9372b8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 6 Dec 2015 10:25:33 -0800 Subject: [PATCH] SCP: Allow command switches -N and -Y to specify the answer to Yes/No prompts during command execution. --- scp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scp.c b/scp.c index 66c0fa94..163d4e83 100644 --- a/scp.c +++ b/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);