From owner-freebsd-questions Tue Sep 26 23:45:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 2568E37B42C for ; Tue, 26 Sep 2000 23:45:31 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 26 Sep 2000 23:44:18 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e8R6jLs87674; Tue, 26 Sep 2000 23:45:21 -0700 (PDT) (envelope-from cjc) Date: Tue, 26 Sep 2000 23:45:20 -0700 From: "Crist J . Clark" To: j mckitrick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: weird inconsistent editing behavior Message-ID: <20000926234520.B81242@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <20000926131753.A24573@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000926131753.A24573@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Tue, Sep 26, 2000 at 01:17:53PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Sep 26, 2000 at 01:17:53PM +0100, j mckitrick wrote: > > This one really has me going. For the past 2 days, when I am editing a > document with vi or vim, after cursoring up several lines, the console beeps > and inserts a capital 'A' and goes into insert mode. After cursoring down > several times, I get a capital 'B', a newline, and insert mode again. > > AFAIK, the termcap on this machine has not changed, and the term type is > xterm-color, which is also correct. This *has* to be a stupid mistake of > some kind, but I am at a loss to figure out what. Meanwhile, I will keep > trying to solve it myself. I only see this effect over network connections when I hold down and repeat an arrow key. An arrow key acctually produces several characters. Try doing, ^[[A I believe that's an ESC followed by '[' and 'A.' Now you see where the 'A's come from? =) (Try the others to find the 'B.') That is, vi(1) loses the association of that group of characters actually being one keyboard event. Of course, the way to prevent this is to use h-j-k-l to move around the vi screen. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message