Release 4.1
[unix-history] / usr / src / usr.bin / tn3270 / distribution / sys_dos / system.c
index fad0134..15359e9 100644 (file)
@@ -1,7 +1,28 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)system.c   4.1 (Berkeley) %G%";
+#endif /* not lint */
+
 #include <stdio.h>
 
 #include "../general/general.h"
 #include <stdio.h>
 
 #include "../general/general.h"
-#include "../api/api.h"
+#include "../ctlr/api.h"
 #include "spint.h"
 
 #include "../general/globals.h"
 #include "spint.h"
 
 #include "../general/globals.h"
@@ -37,11 +58,18 @@ shell_continue()
        handle_api(&spinted.regs, &spinted.sregs);
        spint_continue(&spinted);
     } else {
        handle_api(&spinted.regs, &spinted.sregs);
        spint_continue(&spinted);
     } else {
+       char inputbuffer[100];
+
        if (spinted.rc != 0) {
            fprintf(stderr, "Process generated a return code of 0x%x.\n",
                                                                spinted.rc);
        }
        if (spinted.rc != 0) {
            fprintf(stderr, "Process generated a return code of 0x%x.\n",
                                                                spinted.rc);
        }
+       printf("[Hit return to continue]");
+       fflush(stdout);
+       (void) gets(inputbuffer);
        shell_active = 0;
        shell_active = 0;
+       setconnmode();
+       ConnectScreen();
     }
     return shell_active;
 }
     }
     return shell_active;
 }