about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-02-05 17:00:19 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-02-05 17:00:19 -0500
commit4b034492d7e0a45781e340312e0570e5052c42d9 (patch)
tree52d01f4b7bf11032eeab99dbde240eff1b17d2dd /src/LYMain.c
parentb6d1143cba1a1910742924e8724f02585160f513 (diff)
downloadlynx-snapshots-4b034492d7e0a45781e340312e0570e5052c42d9.tar.gz
snapshot of project "lynx", label v2-7-1ac-0_113
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index abf203af..0037fc8a 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -64,6 +64,10 @@ PUBLIC BOOLEAN socks_flag=TRUE;
 PUBLIC BOOLEAN sigint = FALSE;
 #endif /* IGNORE_CTRL_C */
 
+#ifdef __DJGPP__
+char init_ctrl_break[1];
+#endif /* __DJGPP__ */
+
 #ifdef VMS
 PUBLIC char *mail_adrs = NULL;	/* the mask for a VMS mail transport */
 	       /* create FIXED 512 binaries */
@@ -389,6 +393,13 @@ PRIVATE void FatalProblem PARAMS((int sig));
 #if defined(USE_HASH)
     char *lynx_lss_file=NULL;
 #endif
+    
+#ifdef __DJGPP__
+void  reset_break() 
+{
+    PDC_set_ctrl_break(init_ctrl_break[0]);
+}
+#endif /* __DJGPP__ */
 
 PRIVATE void free_lynx_globals NOARGS
 {
@@ -538,7 +549,12 @@ PUBLIC int main ARGS2(
     }
 #endif /* _WINDOWS */
 
-#ifdef DJGPP
+#ifdef __DJGPP__
+if (PDC_get_ctrl_break() == 0) {
+    PDC_set_ctrl_break(TRUE);
+    init_ctrl_break[0] = 0;}
+else {init_ctrl_break[0] = 1;}
+    atexit(reset_break);
     sock_init();
 #endif