Patch looks ok. Only question is whether this could ever trigger a double new
line. Would need SIGINT to be defined and one or both of SIGBUS/SIGSEGV to be
undefined.
For Debian and all other modern Linux systems I don't see that being a problem.
Not sure if that is true for legacy/niche platforms.
diff --git a/fileio.c b/fileio.c
index ba0a1d0..aa3117d 100644
--- a/fileio.c
+++ b/fileio.c
@@ -1637,3 +1637,6 @@ void handler(signal) /* upon interrupt, turn on echo
and exit cleanly */
#if !(defined(SIGBUS) || defined(SIGSEGV)) /* add a newline if not at */
(*G.message)((zvoid *)&G, slide, 0L, 0x41); /* start of line (to stderr;
*/
+#elif defined(SIGINT)
+ if (signal == SIGINT)
+ (*G.message)((zvoid *)&G, slide, 0L, 0x41);
#endif