Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-11-06 | colorize 0.52v0.52 | 2 | -2/+2 | ||
2013-11-05 | Use NULL in long options data initialization | 1 | -1/+1 | ||
2013-10-29 | Don't fail if color string exists as file | 1 | -3/+25 | ||
2013-10-20 | Document sequences being used | 1 | -3/+14 | ||
2013-09-05 | Clear pointer before reusing | 1 | -0/+3 | ||
2013-08-28 | Swap parameters of print_line | 1 | -4/+4 | ||
2013-08-24 | Replace option part of identifiers with arg | 1 | -9/+9 | ||
2013-08-22 | Add assertion in process_file_option | 1 | -0/+1 | ||
2013-08-21 | Initialize file pointer | 1 | -1/+1 | ||
2013-08-18 | Avoid gmake specific Makefile idiom | 1 | -1/+1 | ||
Example make failure: Using $< in a non-suffix rule context is a GNUmake idiom (line 11 of Makefile) | |||||
2013-08-17 | Extend feature test macro | 1 | -1/+1 | ||
Defining _POSIX_C_SOURCE=200809L fixes compilation currently under Net/Open/MirBSD (and possibly more). | |||||
2013-08-09 | Test failures | 1 | -2/+49 | ||
2013-08-04 | colorize 0.51v0.51 | 2 | -2/+2 | ||
2013-08-03 | Print diagnostic for wrong count of arguments | 1 | -0/+1 | ||
2013-08-03 | Quote original unrecognized color name | 1 | -6/+11 | ||
This fixes the name being quoted for bold colors: [sts@kronos colorize-eaf4e19]$ ./colorize Greeen ./colorize: foreground color 'greeen' not recognized | |||||
2013-07-31 | Add vfprintf_diag and macro | 1 | -6/+16 | ||
2013-07-30 | Revert "Make vfprintf_{fail,diag} wrappers" | 1 | -7/+3 | ||
This reverts commit fbbedc1d43af9c4fbc92611db19c617378dce2e8. Undo as variadic macros are not allowed in C89. | |||||
2013-07-27 | Make vfprintf_{fail,diag} wrappers | 1 | -3/+7 | ||
2013-07-16 | Check for non-empty line | 1 | -1/+1 | ||
2013-07-13 | Eliminate stream modes | 1 | -66/+13 | ||
The added complexity is not worth the cost as these modes do not provide a real speed benefit nor is the implementation mature. Thus, remove them. | |||||
2013-07-04 | Tighten scope of test | 1 | -4/+6 | ||
2013-07-03 | Clean sequences more strictly | 2 | -17/+49 | ||
2013-06-16 | Mention that sequences are added on a line basis | 1 | -1/+4 | ||
2013-05-28 | Bail out if both clean switches are provided | 1 | -0/+2 | ||
2013-05-18 | Allow for DEBUG to be overridden | 1 | -1/+3 | ||
2013-05-13 | Add note in line printing function | 1 | -0/+1 | ||
2013-05-07 | Double space at end of sentence | 1 | -3/+3 | ||
2013-04-29 | First draft of man page | 1 | -0/+43 | ||
2013-04-26 | Introduce calloc wrappers and zero memory | 1 | -5/+27 | ||
Zero allocated memory of size "color name" struct to allow for free() to be called for struct members even when not all of them have been set explicitly yet. This is necessary since freeing those might take place prematurely in cleanup() (triggered via atexit). | |||||
2013-04-24 | colorize 0.50v0.50 | 1 | -1/+1 | ||
2013-04-24 | Test clean-all feature | 1 | -9/+27 | ||
2013-04-09 | Clean text from all color escape sequences | 1 | -42/+65 | ||
2013-03-05 | Reduce short options code | 1 | -6/+7 | ||
2013-03-04 | Optimize parsing command-line options | 1 | -22/+45 | ||
2013-03-03 | Test count of sequences being printed | 1 | -1/+6 | ||
2013-03-03 | Don't print pair of sequences at end-of-file | 1 | -11/+13 | ||
2013-02-24 | Add blank line | 1 | -0/+1 | ||
2013-02-19 | Print actual color separator in help output | 1 | -1/+1 | ||
2013-02-19 | Define color separator once | 1 | -4/+6 | ||
2013-02-18 | Adjust format specifier for unsigned integers | 1 | -4/+4 | ||
2013-02-17 | colorize 0.49v0.49 | 1 | -1/+1 | ||
2013-02-17 | Use size_t instead of unsigned integer type | 1 | -2/+2 | ||
2013-02-15 | Enclose valgrind test in skip block | 1 | -2/+4 | ||
2013-02-15 | Narrow scope of variables | 1 | -8/+6 | ||
2013-02-11 | Advance position for end sequence | 1 | -1/+2 | ||
2013-02-10 | Keep makefile simple | 1 | -6/+3 | ||
2013-02-09 | Improve wrapping memory functions | 3 | -22/+43 | ||
2013-02-09 | Test clean feature | 1 | -8/+31 | ||
2013-02-08 | Skip invalid sequences correctly | 1 | -1/+2 | ||
2013-02-07 | Clean text from color escape sequences | 1 | -29/+213 | ||
In order to handle end-of-buffer reads with partial line chunks, merge those when cleaning text. Pass each line then to the offset extracting function which gathers begin/end offsets of escape sequences. Finally, for printing cleaned lines of text, omit all color escape sequences as defined by their set of offsets (and restore characters temporarily overwritten with terminating NUL). Furthermore, add a basic string concatenation function and wrap the free memory function to have it nullify pointers. |