[Toybox] Fwd: [New Toy - patch] add ps & watch
David Seikel
onefang at gmail.com
Tue Aug 20 21:15:42 PDT 2013
On Tue, 20 Aug 2013 15:55:24 -0500 Rob Landley <rob at landley.net> wrote:
> On 08/20/2013 04:46:20 AM, Ashwini Sharma wrote:
> > Hi Rob,
> >
> > Attached are the patches for _watch_ and _ps_ command.
> >
> > Sent _ps_ again, just in case you lost the last one. This one also
> > have a
> > copyright update.
>
> I planned to do watch.c after doing less.c because both have the
> similar "printing a chunk of a larger screen" logic. If your command
> output produces too many lines, it shouldn't scroll off, but given
> that it can wrap around to produce more lines, you can't just count
> lines. For example:
>
> watch 'python -c "print 100*\"abcdefghijklmnopqrstuvwxyz\""'
>
> This version just scrolls off. It doesn't capture the output and
> make an attempt to format it. But toybox needs that logic for less,
> more, vi, editing command line history...
I've been thinking about what you said before about my large editor and
screen handling blob. I think I have found a way to at least make one
or two much smaller blobs to help ease it into toybox. Finding the
time to get to it is a problem we are all too familiar with. I'll get
there, I want to actually use it myself.
--
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130821/20fbbc48/attachment-0002.sig>
More information about the Toybox
mailing list