From 6767c1a9d5cbbb6ccd08971de00c0c495eda2190 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 28 Apr 2024 14:09:27 -1000 Subject: [PATCH] SCP: Allow TYPE command output to be terminated by SIGINT --- scp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 0b22fabd..a873933b 100644 --- a/scp.c +++ b/scp.c @@ -7967,8 +7967,13 @@ lbuf[sizeof(lbuf)-1] = '\0'; if (sim_type_file_offset) (void)fseek (file, sim_type_file_offset, SEEK_SET); while ((NULL != fgets (lbuf, sizeof(lbuf)-1, file)) && - (lines++ < sim_type_line_count)) + (lines++ < sim_type_line_count)) { sim_printf ("%s", lbuf); + if (stop_cpu) { + stop_cpu = FALSE; + break; + } + } fclose (file); }