History log of /external/toybox/toys/pending/more.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
072ea41682be093fd5fb25e7d6669a65a76144e6 22-Apr-2016 Elliott Hughes <enh@google.com> Fix more to not append an extra newline.

More's sigatexit handler needs to distinguish between normal exit and exit
due to receipt of a signal.

Change tty_sigreset to look at the signal number too, so that pressing 'q'
to exit top doesn't cause its exit status to be 128.
/external/toybox/toys/pending/more.c
63eae537018a758b29f6c9bc39e3d36be1710179 22-Apr-2016 Elliott Hughes <enh@google.com> Fix more to a non-tty.

And add a test.
/external/toybox/toys/pending/more.c
53dc99a76e73ff086db19e7da266c3b571b3cf87 03-Mar-2016 Rob Landley <rob@landley.net> Minor cleanup.
/external/toybox/toys/pending/more.c
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