X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/9563b3d140fcd598995725af0b990cee71ca8388..d43d1075666c90460941d74f5a568d29707cd540:/usr/src/usr.bin/tn3270/distribution/sys_dos/system.c diff --git a/usr/src/usr.bin/tn3270/distribution/sys_dos/system.c b/usr/src/usr.bin/tn3270/distribution/sys_dos/system.c index fad013468f..15359e94bd 100644 --- a/usr/src/usr.bin/tn3270/distribution/sys_dos/system.c +++ b/usr/src/usr.bin/tn3270/distribution/sys_dos/system.c @@ -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 #include "../general/general.h" -#include "../api/api.h" +#include "../ctlr/api.h" #include "spint.h" #include "../general/globals.h" @@ -37,11 +58,18 @@ shell_continue() 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); } + printf("[Hit return to continue]"); + fflush(stdout); + (void) gets(inputbuffer); shell_active = 0; + setconnmode(); + ConnectScreen(); } return shell_active; }