From owner-freebsd-stable Wed Dec 25 19:31:57 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6939B37B401 for ; Wed, 25 Dec 2002 19:31:55 -0800 (PST) Received: from a2.scoop.co.nz (aurora.scoop.co.nz [203.96.152.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 916B543EC5 for ; Wed, 25 Dec 2002 19:31:54 -0800 (PST) (envelope-from andrew@scoop.co.nz) Received: from localhost (localhost [127.0.0.1]) by a2.scoop.co.nz (8.12.2/8.12.2) with ESMTP id gBQ3Vojg073446; Thu, 26 Dec 2002 16:31:50 +1300 (NZDT) (envelope-from andrew@scoop.co.nz) Date: Thu, 26 Dec 2002 16:31:50 +1300 (NZDT) From: Andrew McNaughton To: "Philip J. Koenig" Cc: "Brandon S. Allbery KF8NH" , Subject: Re: Mergemaster editor problem In-Reply-To: <20021226032419599.AAA347@empty1.ekahuna.com@dyn205.ekahuna.com> Message-ID: <20021226162758.N72213-100000@a2.scoop.co.nz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 25 Dec 2002, Philip J. Koenig wrote: > On 25 Dec 2002 at 22:01, Brandon S. Allbery boldly uttered: > > > On Wed, 2002-12-25 at 21:33, Philip J. Koenig wrote: > > > "%ex/vi: Vi's standard input and output must be a terminal > > (...) > > > mergemaster -v -C -w 132 2>&1 |tee -a > > > > So vi's standard output wasn't a terminal (it was the pipe to tee). > > Sounds like "working as designed" to me. > > > > OK, I see your point - does the same thing if I use vi by itself > piped to tee. > > So any suggestion on how to make this work without giving up the log > of the general Mergemaster process? (all too often stuff scrolls by > that I have to deal with later so the log is important to me) > > I know about the "script" command but according to the manpage: > > "Certain interactive commands, such as vi(1), create garbage in the > typescript file. The script utility works best with commands that > do not manipulate the screen." > > > (Actually I don't mind garbage in the output logfile, as long as it > doesn't corrupt the rest of the file. I can just ignore or remove > that section.) Right. The garbage is going to be much the same regardless of whether it's script or tee that records it, it's just that script does a better job of looking like a terminal. Actually, the garbage is terminal escape codes for moving the cursor around, clearing the screen, and such like. Presumably (ie I haven't done this) if you pipe the log file through some sort of slow pipe and then to your terminal, it should recreate the original display sequence fairly well. ------------------------------------------------------------------ Andrew McNaughton In Sydney and looking for work andrew@scoop.co.nz http://staff.scoop.co.nz/andrew/cv.doc Mobile: +61 422 753 792 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message