From owner-freebsd-ports@FreeBSD.ORG Fri Feb 29 15:05:38 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA380106566B for ; Fri, 29 Feb 2008 15:05:38 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.60.158]) by mx1.freebsd.org (Postfix) with ESMTP id 9A3D68FC24 for ; Fri, 29 Feb 2008 15:05:38 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: by syn.atarininja.org (Postfix, from userid 1001) id 1971B5C5A; Fri, 29 Feb 2008 10:09:25 -0500 (EST) Date: Fri, 29 Feb 2008 10:09:25 -0500 From: Wesley Shields To: Randy Pratt Message-ID: <20080229150925.GA31664@atarininja.org> References: <20080229093615.209d7bde.bsd-unix@embarqmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080229093615.209d7bde.bsd-unix@embarqmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-ports@freebsd.org Subject: Re: Interaction between port OPTIONS and /usr/bin/tee X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 15:05:38 -0000 On Fri, Feb 29, 2008 at 09:36:15AM -0500, Randy Pratt wrote: > I run a script to update ports which uses /usr/bin/tee to do some > logging of the process. This has worked for a very long time (years) > but sometime in the past week(s) or so something has changed when > an OPTIONS screen displays and "tee" is being employed. > > I cannot use TAB to get to the OK button. The TAB key cause the > cursor to go to the next word to the right. The UP/DOWN arrows > are also misbehaving. I'm sure this is hard to visualize but a > short script shows the new(?) behavior: > > =========== > #!/bin/sh > logfile="~/test_interaction.log" > cd /usr/ports/multimedia/mplayer > make config | tee /dev/tty >> ${logfile} > =========== > > Once you see the resulting action, just ctrl-c to exit and leave > the OPTIONS settings unchanged. You may need to issue a "reset" > command to restore the xterm to normal colors. > > Any port that uses the OPTIONS framework can be substituted and > produce the same results. > > I thought perhaps it was a recent change to xterm behavior but I > portdowngraded to xterm-228 and the behavior was the same. The > last time it appeared to work correctly was on 2-16-2008 when the > "Options for sox 14.0.1" screen was displayed. I last > updated sources on 2-18-2008 if that has any bearing on it. > > I understand that logging the output of an OPTIONS selection > produces a bizzare log entry but its not been a problem in the > past when it was just another part of the port update process. > > Anyone have any ideas what's happening here? I don't think I'm > misapplying the use of "tee". You never mention which version of FreeBSD you are using. My money is on ncurses changes, though it's hard to tell until we know what you are using. I can see similar behavior on a current box from a few days ago. My guess is this won't happen on 6.2-RELEASE? -- WXS