summaryrefslogtreecommitdiffstats
path: root/color.c
AgeCommit message (Collapse)Author
2019-02-09Add some documentation commentsTavian Barnes
2019-01-11color.c: Fix an out-of-bounds read if LS_COLORS doesn't end in a colonTavian Barnes
2019-01-02posix1e: Split out ACL and capability handling from utilTavian Barnes
2019-01-02color: Fix more incompatibilities with GNU lsTavian Barnes
2019-01-02color: Check format strings + args for cfprintf()Tavian Barnes
%{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings.
2019-01-02diag: Unify diagnostic formattingTavian Barnes
This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages.
2018-12-28color: Don't bail out on colors that exist but are NULLTavian Barnes
2018-12-17color: Support coloring files with capabilitiesTavian Barnes
2018-12-17color: Make extension detection case-insensitiveTavian Barnes
It's what GNU ls does.
2018-12-17color: Don't print the leading directory color if there's no leading directoryTavian Barnes
2018-09-24Update copyright datesTavian Barnes
2018-01-08stat: New wrapper around the stat() familyTavian Barnes
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times.
2017-11-13color: Optimize cfprintf() a bitTavian Barnes
2017-11-13color: Implement %m for cfprintf()Tavian Barnes
2017-10-21parse: Keep track of what files are already openTavian Barnes
Fixes #22
2017-10-21Report errors that occur when closing filesTavian Barnes
Otherwise we miss write errors that occur when flushing the cache.
2017-09-20util: Wrap faccessat() to fix some portability issuesTavian Barnes
2017-08-27Implement cost-based optimizationTavian Barnes
2017-07-27Re-license under the BSD Zero Clause LicenseTavian Barnes
2017-05-15Add colors to -D treeTavian Barnes
2017-04-30Pass AT_EACCESS to faccessat()Tavian Barnes
That's the form that actually answers the expected question ("can I open() this"), and the only form Hurd supports.
2017-04-24Release 1.01.0Tavian Barnes
2017-04-16Make -help output prettier and more completeTavian Barnes
2017-03-16Color link targets for -lsTavian Barnes
Fixes #18.
2017-03-16Give struct expr a CFILE* instead of just a FILE*Tavian Barnes
This unifies the behaviour of -print and -fprint /dev/stdout.
2017-03-11Make a printf()-style API for colored messagesTavian Barnes
2016-11-24Update some copyright dates.Tavian Barnes
2016-10-16Check for errors in -print and friends.Tavian Barnes
2016-10-02bftw: Add support for some exotic file types, where available.Tavian Barnes
2016-06-03color: Ignore colors that are all zeros.Tavian Barnes
This keeps multi_hard from overriding extension colors if LS_COLORS says mh=00:, matching the behavior of ls.
2016-06-02color: Add multi-hard link coloring support.Tavian Barnes
2016-02-27Fix uninitialized read in parse_colors().Tavian Barnes
2016-02-24Color broken symlinks correctly.Tavian Barnes
2016-02-14s/color_table/colors/.Tavian Barnes
2016-02-14Refactor color handling.Tavian Barnes
The main benefit is colored warnings/errors during parsing.
2016-02-14Don't modify the result of getenv().Tavian Barnes
2016-02-04Implement -[ac]?newer.Tavian Barnes
2016-02-04Don't use typedefs to avoid struct/enum tags.Tavian Barnes
2015-09-26bftw() interface improvements:Tavian Barnes
- Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls
2015-09-08Implement -delete.Tavian Barnes
Related to #5.
2015-09-02Print the root file/directory too.Tavian Barnes
2015-07-25Recover from errors in diropen().Tavian Barnes
Fixes #4.
2015-06-23Assorted optimizations.Tavian Barnes
2015-06-22Add support for per-extension colors.Tavian Barnes
2015-06-20Add initial support for colorized output.Tavian Barnes