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