1
0
mirror of https://github.com/simh/simh.git synced 2026-01-14 07:39:29 +00:00

SCP: Allow TYPE command output to be terminated by SIGINT

This commit is contained in:
Mark Pizzolato 2024-04-28 14:09:27 -10:00
parent c16e379b73
commit 6767c1a9d5

7
scp.c
View File

@ -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);
}