aboutsummaryrefslogtreecommitdiff
path: root/toys/example
AgeCommit message (Collapse)Author
2020-12-06Remove CONFIG_TOYBOX_I18N and just always support utf8.Rob Landley
2020-09-09Use the infrastructure properly.Rob Landley
2020-09-04Add commas to top display, and adjust memory units to megabytes if >10G RAM.Rob Landley
2020-05-06Minor doc tweaks.Rob Landley
2020-01-01Use FLAG() macros.Rob Landley
2019-05-16Add human_readable_long() for more than 3 digits of output.Rob Landley
2019-02-01Fix record-commands and logwrapper.cRob Landley
record-commands: Delete old log, only delete $WRAPDIR at end if path wasn't externally supplied, don't add the rm at the end to the log. logwrapper.c: don't skip filename when measuring space for command line malloc, use argv[0] instead of /proc/self/exe (which is realpath -f).
2019-01-30Command logging wrapper to help analyze what commands scripts call and how.Rob Landley
2018-12-04Clean up some --help formatting.Elliott Hughes
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output".
2018-11-17Convert more GLOBALS argument vars to the new single letter code style.Rob Landley
2018-08-17Make microcom use set_terminal() and move speed setting into set_terminal().Rob Landley
2018-04-03Finish renameing test_* to demo_* in example directories and tweak README.Rob Landley
(This way "make test_sed" isn't in the same namespace as "make test_scankey".)
2018-03-26Rename demo_human_readable.c->demo_number.c and have it do atolx() too.Rob Landley
2018-02-17Add RFC link to the examples.Rob Landley
2017-10-31Rename test_*.c to demo_*.c (because "make test_$CMD" means something already),Rob Landley
fluff out README, and add a comment to hostid explaining its deprecation.
2017-09-05Tweak utf8towc() to return -1 earlier sometimes (instead of -2), and add testRob Landley
program to compare against libc output.
2016-12-26Move hostid to toys/example and have it "default n".Rob Landley
A "globally unique 32 bit number" is a concept the Linux world has outgrown.
2016-07-30Single builds skip commands with 0 in the install location soRob Landley
"make test_scankey" didn't work.
2016-03-06Fix warning (toys.optflags is a long long now).Rob Landley
2016-01-10Make cursor left/right change sort type in iotop.Rob Landley
2016-01-07Make scan_key() specify timeout in miliseconds, split out terminal_probesize(),Rob Landley
add function key definitions and shift/ctrl/alt cursor keys.
2015-12-27Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,Rob Landley
and add test_scankey.
2015-12-10Expand toys.optargs to 64 bits so people adding more options to ls don't run ↵Rob Landley
out. Keep the low 32 bits of FLAG_x constants as 32 bit numbers so that at least on little endian platforms it's still normal 32 bit math outside of lib/args.c.
2015-08-17Test for human_readable()Rob Landley
2014-09-26Separate more commands so single.sh can build them standalone.Rob Landley
2014-04-23Add example directory, move hello.c into it, add skeleton.c to demonstrate ↵Rob Landley
more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.