]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.ioctl.c
1 /* $NetBSD: hack.ioctl.c,v 1.6 1997/10/19 16:58:07 christos Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
9 __RCSID("$NetBSD: hack.ioctl.c,v 1.6 1997/10/19 16:58:07 christos Exp $");
13 * This cannot be part of hack.tty.c (as it was earlier) since on some
14 * systems (e.g. MUNIX) the include files <termio.h> and <sgtty.h> define the
15 * same constants, and the C preprocessor complains.
20 struct termios termios
;
25 (void) tcgetattr(fileno(stdin
), &termios
);
31 (void) tcsetattr(fileno(stdin
), TCSADRAIN
, &termios
);
34 #ifdef SUSPEND /* implies BSD */
40 if (signal(SIGTSTP
, SIG_IGN
) == SIG_DFL
) {
42 (void) signal(SIGTSTP
, SIG_DFL
);
43 (void) kill(0, SIGTSTP
);
48 pline("I don't think your shell has job control.");
51 pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");