Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site linus.UUCP Path: utzoo!linus!ell From: ell@linus.UUCP (Edward L. Lafferty) Newsgroups: net.unix-wizards Subject: output redirection from a compat Message-ID: <972@linus.UUCP> Date: Thu, 7-Jun-84 08:29:28 EDT Article-I.D.: linus.972 Posted: Thu Jun 7 08:29:28 1984 Date-Received: Fri, 8-Jun-84 01:32:25 EDT Organization: MITRE Corp., Bedford MA Lines: 34 THe chess program supplied with Berkeley (4.1 and 4.2) runs as a pdp-11 compatibility package. Note the following behavior: 1. Run chess. Play a move like p-k4. then err with r-r4 and resign. You will have received the error message "Illegal Move" and some formatting characters 1. ...... etc. 2. Then redirect the output thru a simple filter like cat. chess |& cat -u and do the same things. This time no error message, no format characters and Oh,yes, the title "Chess" is held till the end. When you resign, all the stacked output tumbles out. I have tried many ways to overcome this with no success, including trying piping from a C program. I have run the v7trc (trace compat) to see what is happening and it looks like somehow the program is determining that the output is redirected and holding on to some messages. It runs properly under an emacs shell so I guess mpxio might help. Any ideas for an easy way to attach the (complete) output of chess to a filter and get the error messages piped thru at the time they occur? Thanx. --Ed Lafferty