1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* hack.ioctl.c - version 1.0.2 */
4 /* This cannot be part of hack.tty.c (as it was earlier) since on some
5 systems (e.g. MUNIX) the include files <termio.h> and <sgtty.h>
6 define the same constants, and the C preprocessor complains. */
11 struct ltchars ltchars, ltchars0;
13 #include <termio.h> /* also includes part of <sgtty.h> */
19 (void) ioctl(fileno(stdin), (int) TIOCGLTC, (char *) <chars);
20 (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) <chars0);
22 (void) ioctl(fileno(stdin), (int) TCGETA, &termio);
28 (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) <chars);
30 (void) ioctl(fileno(stdin), (int) TCSETA, &termio);
34 #ifdef SUSPEND /* implies BSD */
38 if(signal(SIGTSTP, SIG_IGN) == SIG_DFL) {
40 (void) signal(SIGTSTP, SIG_DFL);
41 (void) kill(0, SIGTSTP);
46 pline("I don't think your shell has job control.");
49 pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");