From owner-cvs-all Mon May 22 4: 8:36 2000 Delivered-To: cvs-all@freebsd.org Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 32BE737B9B3; Mon, 22 May 2000 04:08:26 -0700 (PDT) (envelope-from green@FreeBSD.org) Date: Mon, 22 May 2000 07:08:25 -0400 (EDT) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Tim Vanderhoek Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/more prim.c In-Reply-To: <20000521191659.C11540@mad> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 21 May 2000, Tim Vanderhoek wrote: > On Sun, May 21, 2000 at 06:20:24PM -0400, Brian Fundakowski Feldman wrote: > > > > > I agree, but this commit kinda breaks reading short files when -e is > > > specified. It probably also breaks tags and searches in some > > > instances, but I didn't bother testing. It needs to be done differently. > > > > I don't see any differences here, actually. > > Look closer. :-) Compare before and after when viewing a 5 line file > with the -e option. The "...skipping..." is sometimes needed. Well, to be honest, I don't see the advantage it's supposed to have. > > > It happens all the time in X terminals, and is extremely distracting when > > scrolling around since it makes everything jump up and down. I think this > > is a good idea (the heuristic), as it would solve the problem pretty well. > > Noted. > > > > that it doesn't help. It's also undocumented... maybe we should look > > at what some of the other pagers do? > > less implies the -c option when it redraws the screen for a short > file (my planned solution). most uses a full screen regardless. I actually like what most(1) does in almost every case. It's got a lot of nice features, but is missing things like tag support... > An alternate solution is to uses cursor addressing / movement, if > possible, to simply redraw the affected parts of the screen when > viewing a short file (and related tags and search cases). Some people > may prefer this solution. Writing to an off-screen curses window and having curses handle updating the on-screen window would solve the problems people have with(out) -c. I think it makes a lot of sense to gain the redrawing advantages of curses. > > -- > Signature withheld by request of author. > -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message