Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!spool2.mu.edu!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.sources.d Subject: Re: trn and SCO UNIX Message-ID: <2789D6C3.3A8@tct.uucp> Date: 8 Jan 91 14:27:14 GMT References: <1991Jan07.070408.27368@kithrup.COM> Organization: Teltronics/TCT, Sarasota, FL Lines: 33 An alternative patch for trn under SCO UNIX job control follows. It has the nice feature of making trn redraw the screen when restarted. Index: term.c *************** *** 776,785 **** int_count = 0; errno = 0; ! if (read_tty(whatbuf,1) < 0) ! if (!errno) ! errno = EINTR; else { ! perror(readerr); ! sig_catcher(0); } #ifdef PUSHBACK --- 776,787 ---- int_count = 0; errno = 0; ! if (read_tty(whatbuf,1) < 0) { ! if (errno == 0 || errno == EINTR) { ! *whatbuf = '\f'; /* redraw after stop */ ! } else { ! perror(readerr); ! sig_catcher(0); ! } } #ifdef PUSHBACK -- Chip Salzenberg at Teltronics/TCT , "If Usenet exists, then what is its mailing address?" -- me "c/o The Daily Planet, Metropolis." -- Jeff Daiell