X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=mg%2Fspawn.c;fp=mg%2Fspawn.c;h=0000000000000000000000000000000000000000;hp=13fd985303588d71bdb97fff8996bc644c19f09f;hb=4bb27266f935c9aafad6870ffc8847fc65c8120f;hpb=3f771e17236364ded86e96ee64f99344337991f8 diff --git a/mg/spawn.c b/mg/spawn.c deleted file mode 100644 index 13fd985..0000000 --- a/mg/spawn.c +++ /dev/null @@ -1,48 +0,0 @@ -/* $OpenBSD: spawn.c,v 1.11 2006/08/01 22:16:03 jason Exp $ */ - -/* This file is in the public domain. */ - -/* - * Spawn. Actually just suspends Mg. - * Assumes POSIX job control. - */ - -#include "def.h" - -#include -#include - -/* - * This causes mg to send itself a stop signal. It assumes the parent - * shell supports POSIX job control. If the terminal supports an alternate - * screen, we will switch to it. - */ -/* ARGSUSED */ -int -spawncli(int f, int n) -{ - sigset_t oset; - - /* Very similar to what vttidy() does. */ - ttcolor(CTEXT); - ttnowindow(); - ttmove(nrow - 1, 0); - if (epresf != FALSE) { - tteeol(); - epresf = FALSE; - } - if (ttcooked() == FALSE) - return (FALSE); - - /* Exit application mode and tidy. */ - tttidy(); - ttflush(); - (void)sigprocmask(SIG_SETMASK, NULL, &oset); - (void)kill(0, SIGTSTP); - (void)sigprocmask(SIG_SETMASK, &oset, NULL); - ttreinit(); - - /* Force repaint. */ - sgarbf = TRUE; - return (ttraw()); -}