History log of /external/toybox/toys/pending/more.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
daf36948a9c235d5e70ec343557facfb80edaddd 06-May-2015 Elliott Hughes <enh@google.com> Fix more with missing files.

Previously we'd go into an infinite loop because we weren't
incrementing optargs.

Also add a missing flush so an error on stderr won't overtake the
escape code that resets reverse video.

Disclaimer: the new behavior isn't exactly like the desktop version;
surprisingly they try to open the next file _before_ they prompt. That
feels weird to me as a user, and seems like it would lead to a more
awkward implementation, but if you're more concerned about
authenticity...
/external/toybox/toys/pending/more.c
56af7086b2d6f59f54c661602252a0e84562ac7c 11-Apr-2015 Elliott Hughes <enh@google.com> Make more(1) usable.

> Yes, I know, "don't use pending". Sadly, more(1) is pretty useless
> without this. It gets confused by long lines or tabs.
>
> This patch also adds the missing prompt between multiple files.

actually, it looks like we're already hard-coding some escape
sequences? more(1) doesn't need anything that isn't in ANSI, so here's
an alternative patch that fixes the same bugs as the other patch but
also has a reverse-video prompt:
/external/toybox/toys/pending/more.c
75fea678c039381b310d15a86d698cba7ec9805d 28-Nov-2014 Rob Landley <rob@landley.net> Tiny in-passing cleanups to more.c.
/external/toybox/toys/pending/more.c
3297e87c2ab798696b0fb3d06904dccea076b77a 23-Apr-2014 Rob Landley <rob@landley.net> usage: is lower case (the help generator looks for that, might as well be consistent).
/external/toybox/toys/pending/more.c
1685bd5be8f50c6bb876bdfe331d8fe20b304648 23-Dec-2013 Rob Landley <rob@landley.net> Two more commands (last and more) submitted by Ashwini Sharma.
/external/toybox/toys/pending/more.c