From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18869 invoked from network); 2 Mar 2005 18:25:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Mar 2005 18:25:21 -0000 Received: (qmail 32569 invoked from network); 2 Mar 2005 18:25:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Mar 2005 18:25:16 -0000 Received: (qmail 1110 invoked by alias); 2 Mar 2005 18:25:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20914 Received: (qmail 1101 invoked from network); 2 Mar 2005 18:25:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Mar 2005 18:25:12 -0000 Received: (qmail 32209 invoked from network); 2 Mar 2005 18:25:09 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 2 Mar 2005 18:25:05 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 3D4F07004A; Wed, 2 Mar 2005 13:25:04 -0500 (EST) Date: Wed, 2 Mar 2005 13:25:04 -0500 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: Bug in echotc ? Message-ID: <20050302182504.GA16662@scowler.net> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk References: <1050302091036.ZM29038@candle.brasslantern.com> <20050302150800.GA10579@scowler.net> <20050302161048.GA12461@scowler.net> <1050302182031.ZM29878@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050302182031.ZM29878@candle.brasslantern.com> User-Agent: Mutt/1.5.6+20040907i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 > Because atoi(*argv) is "the number of lines affected". Except it isn't, > quite, because really the number of lines affected is the difference > between the current line and the target line. So maybe 1 is the right > value to use for the second argument of tputs() after all. Except if My thought was based on the assumption that affcnt is used only for delay padding. > this isn't a "cm" but rather a relative line-motion such as "DO" or "UP" > then ... maybe what we want is > > num = atoi(*argv); > if (argct == 1) > tputs(tgoto(t, num, num), num, putraw); > else > tputs(tgoto(t, atoi(argv[1]), num), 1, putraw); > > Except it's not clear *that* does the right thing with "LE" or "RI". > Gag. I think that there's probably a reason everyone says to use terminfo instead.