[Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-24 Thread Ray Gardner
In-Reply-To: <0b868804-e677-2a6f-ea50-5ecaf46d3...@landley.net> References: <0b1ae828-4610-c637-7377-a429d8fc0...@landley.net> <0b868804-e677-2a6f-ea50-5ecaf46d3...@landley.net> On Sun, 24 Mar 2024 02:22:17 -0500 rob at landley.net (Rob Landley) wrote: > The thing about vi is it's the

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-24 Thread Rob Landley
On 3/21/24 06:52, Jarno Mäkipää wrote: > On Thu, Mar 21, 2024 at 1:08 AM Rob Landley wrote: >> >> > There is also a testing problem. vi.c doesn't do TEST_HOST because it >> >> > needs a -s option >> >> > to pass in scripts to test with. >> >> >> >> Which is an issue I need to figure out how to ad

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-21 Thread Rob Landley
On 3/21/24 16:13, Oliver Webb wrote: > On Thursday, March 21st, 2024 at 15:53, Rob Landley wrote: > >> I note that "more" is from the days of daisy wheel teletypes, and was thus >> designed to work ok without a tty or interaction through cursor keys (you can >> export $COLUMNS and $LINES or just

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-21 Thread Oliver Webb via Toybox
On Thursday, March 21st, 2024 at 15:53, Rob Landley wrote: > I note that "more" is from the days of daisy wheel teletypes, and was thus > designed to work ok without a tty or interaction through cursor keys (you can > export $COLUMNS and $LINES or just let it guess 80x25), and "less" requires a >

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-21 Thread Rob Landley
On 3/20/24 11:47, enh wrote: > On Wed, Mar 20, 2024 at 9:38 AM Rob Landley > wrote: > > On 3/20/24 00:02, Oliver Webb via Toybox wrote: > > I spotted the more implementation in pending. Looking at it, it's > missing > quite a lot of stuff, > > Such as the

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-21 Thread Jarno Mäkipää
On Thu, Mar 21, 2024 at 1:08 AM Rob Landley wrote: > > On 3/20/24 11:56, Oliver Webb wrote: > > On Wednesday, March 20th, 2024 at 11:39, Rob Landley > > wrote: > >> More never had the ability to go backwards, less did. Different command. > > > >>From the more help text you get when you press "h"

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread enh via Toybox
On Wed, Mar 20, 2024 at 4:08 PM Rob Landley wrote: > On 3/20/24 11:56, Oliver Webb wrote: > > On Wednesday, March 20th, 2024 at 11:39, Rob Landley > wrote: > >> More never had the ability to go backwards, less did. Different command. > > > >>From the more help text you get when you press "h": >

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread Rob Landley
On 3/20/24 11:56, Oliver Webb wrote: > On Wednesday, March 20th, 2024 at 11:39, Rob Landley > wrote: >> More never had the ability to go backwards, less did. Different command. > >>From the more help text you get when you press "h": > > b or ctrl-B Skip backwards k screenfuls of te

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread Oliver Webb via Toybox
On Wednesday, March 20th, 2024 at 11:39, Rob Landley wrote: > More never had the ability to go backwards, less did. Different command. >From the more help text you get when you press "h": b or ctrl-B Skip backwards k screenfuls of text [1] ... > > Looking at the other keybindings

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread Rob Landley
On 3/20/24 00:39, David Seikel wrote: > On 2024-03-20 05:02:11, Oliver Webb via Toybox wrote: >> But I have to ask the question "If it's so easy, why isn't it in toybox >> yet?" Is it just because >> other TODO items taking up time, or is it because it's harder to implement >> than it seems. > >

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread enh via Toybox
On Wed, Mar 20, 2024 at 9:38 AM Rob Landley wrote: > On 3/20/24 00:02, Oliver Webb via Toybox wrote: > > I spotted the more implementation in pending. Looking at it, it's > missing quite a lot of stuff, > > Such as the ability to go back in a file. > > More never had the ability to go backwards,

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-20 Thread Rob Landley
On 3/20/24 00:02, Oliver Webb via Toybox wrote: > I spotted the more implementation in pending. Looking at it, it's missing > quite a lot of stuff, > Such as the ability to go back in a file. More never had the ability to go backwards, less did. Different command. > It's built in a way where no

Re: [Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-19 Thread David Seikel
On 2024-03-20 05:02:11, Oliver Webb via Toybox wrote: > But I have to ask the question "If it's so easy, why isn't it in toybox yet?" > Is it just because > other TODO items taking up time, or is it because it's harder to implement > than it seems. I might be able to shine some light on that. L

[Toybox] [PATCH] more.c: More stuff, down cursor key scrolls down. Also stuff about less

2024-03-19 Thread Oliver Webb via Toybox
I spotted the more implementation in pending. Looking at it, it's missing quite a lot of stuff, Such as the ability to go back in a file. It's built in a way where nothing is accumulated, Which means that support for that would require a half-rewrite. What does POSIX specify as far as options?