From owner-freebsd-stable Wed Dec 25 19:47:26 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 3552237B401 for ; Wed, 25 Dec 2002 19:47:25 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82BC243ED1 for ; Wed, 25 Dec 2002 19:47:14 -0800 (PST) (envelope-from davep.freebsd@meduseld.net) Received: from baloo.meduseld.net (h00095b0c686b.ne.client2.attbi.com[66.30.121.153]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <20021226034713002000g2fne>; Thu, 26 Dec 2002 03:47:13 +0000 Received: from localhost (localhost [127.0.0.1]) by baloo.meduseld.net (8.12.6/8.12.6) with ESMTP id gBQ3k0ql099361; Wed, 25 Dec 2002 22:46:04 -0500 (EST) (envelope-from davep.freebsd@meduseld.net) Date: Wed, 25 Dec 2002 22:46:00 -0500 (EST) Message-Id: <20021225.224600.521638302.davep@meduseld.net> To: pjklist@ekahuna.com Cc: allbery@ece.cmu.edu, stable@FreeBSD.ORG Subject: Re: Mergemaster editor problem From: "David A. Panariti" In-Reply-To: <20021226032419599.AAA347@empty1.ekahuna.com@dyn205.ekahuna.com> References: <20021226023312875.AAA83@empty1.ekahuna.com@dyn205.ekahuna.com> <1040871700.6147.7.camel@rushlight.kf8nh.apk.net> <20021226032419599.AAA347@empty1.ekahuna.com@dyn205.ekahuna.com> X-Attribution: davep X-Mailer: Mew version 2.2 on XEmacs 21.4.10 (Military Intelligence) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 >>>>> "Philip" == Philip J Koenig writes: Philip> 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. Philip> OK, I see your point - does the same thing if I use vi by itself Philip> piped to tee. Philip> So any suggestion on how to make this work without giving up the Philip> log of the general Mergemaster process? (all too often stuff Philip> scrolls by that I have to deal with later so the log is important Philip> to me) Philip> I know about the "script" command but according to the manpage: Philip> "Certain interactive commands, such as vi(1), create garbage Philip> in the typescript file. The script utility works best with Philip> commands that do not manipulate the screen." Philip> (Actually I don't mind garbage in the output logfile, as long as Philip> it doesn't corrupt the rest of the file. I can just ignore or Philip> remove that section.) There may be an easier way but you could use screen (/usr/ports/misc/screen) It has an option to create a log file. When using vi, it captures all of the escape sequences used to move the cursor, etc, so there is a lot of garbage looking stuff in the log, but everything is captured. Besides logging it is a wonderful utility with tons of uses. regards, davep To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message