From owner-freebsd-hackers Thu Jan 12 19:30:59 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id TAA24624 for hackers-outgoing; Thu, 12 Jan 1995 19:30:59 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id TAA24618 for ; Thu, 12 Jan 1995 19:30:56 -0800 Received: by sequent.kiae.su id AA12681 (5.65.kiae-2 ); Fri, 13 Jan 1995 06:30:21 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id GAA02423; Fri, 13 Jan 1995 06:22:42 +0300 To: freebsd-hackers@FreeBSD.org, moriyama@trl.ibm.co.jp References: <199501121532.KAA02843@skynet.ctr.columbia.edu> <9501130151.AA18255@ns.trl.ibm.com> In-Reply-To: <9501130151.AA18255@ns.trl.ibm.com>; from MORIYAMA Takao at Fri, 13 Jan 1995 10:51:55 +0900 Message-Id: Organization: Olahm Ha-Yetzirah Date: Fri, 13 Jan 1995 06:22:41 +0300 X-Mailer: Mail/@ [v2.31 FreeBSD] From: "Andrew A. Chernov, Black Mage" X-Class: Fast Subject: Re: Small syscons change Lines: 21 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 892 Sender: hackers-owner@FreeBSD.org Precedence: bulk In message <9501130151.AA18255@ns.trl.ibm.com> MORIYAMA Takao writes: >If termcap library generates "ESC [ d" or "ESC [ `" >sequences, is 0 based, not 1 based. So clamping by original code > n = scp->term.param[0]; if (n < 1) n = 1; >makes the cursor on the second column/row on the screen. This sequnce is >used by emacs as long as I know. >The following pactch fixes this problem without breaking bash and elvis. >I don't know this is the right solution, but I have no problem for now. You fix it in wrong way, use (n - 1) in move_crsr instead like in 'H' escape done. -- Andrew A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849