Article View: comp.sources.d
Article #1351Re: trn and SCO UNIX
From: Chip Salzenberg
Date: Tue, 08 Jan 1991 14:27
Date: Tue, 08 Jan 1991 14:27
33 lines
1308 bytes
1308 bytes
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 <chip@tct.uucp>, <uunet!pdn!tct!chip>
"If Usenet exists, then what is its mailing address?" -- me
"c/o The Daily Planet, Metropolis." -- Jeff Daiell
Technical Details
Message-ID:
<2789D6C3.3A8@tct.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!spool2.mu.edu!uunet!pdn!tscs!tct!chipReferences:
<1991Jan07.070408.27368@kithrup.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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