]>
 
 
git.refcnt.org Git - colorize.git/log 
 
 
 
 
 
 
summary  | 
shortlog  | log | 
commit  | 
commitdiff  | 
tree 
first ⋅ prev ⋅ next
 
Steven Schubiger  [Sun, 22 Dec 2013 19:27:02 +0000  (20:27 +0100)]  
 
Prefer term help screen 
 
Steven Schubiger  [Sat, 21 Dec 2013 20:28:25 +0000  (21:28 +0100)]  
 
Print hint to invoke usage screen 
 
Steven Schubiger  [Thu, 12 Dec 2013 22:05:26 +0000  (23:05 +0100)]  
 
Merge declarations of boolean type 
 
Steven Schubiger  [Tue, 10 Dec 2013 21:26:08 +0000  (22:26 +0100)]  
 
First draft of README 
 
Steven Schubiger  [Mon, 9 Dec 2013 17:11:44 +0000  (18:11 +0100)]  
 
Sort color names elsewhere 
 
Steven Schubiger  [Sat, 7 Dec 2013 15:55:30 +0000  (16:55 +0100)]  
 
Exchange color codes for cyan/magenta 
 
Whoops, accidentally swapped. 
 
Steven Schubiger  [Fri, 6 Dec 2013 20:33:12 +0000  (21:33 +0100)]  
 
List state of debugging in version output 
 
Steven Schubiger  [Sun, 1 Dec 2013 17:05:54 +0000  (18:05 +0100)]  
 
Read multiple of 1024 bytes from stream 
 
Steven Schubiger  [Thu, 21 Nov 2013 20:41:59 +0000  (21:41 +0100)]  
 
Improve determining buffer size 
 
Steven Schubiger  [Sun, 17 Nov 2013 13:16:47 +0000  (14:16 +0100)]  
 
Remove superfluous semicolon from macros 
 
Steven Schubiger  [Sat, 16 Nov 2013 22:19:06 +0000  (23:19 +0100)]  
 
Validate color provided to exclude-random switch 
 
Steven Schubiger  [Wed, 6 Nov 2013 19:52:54 +0000  (20:52 +0100)]  
 
colorize 0.52 
 
Steven Schubiger  [Tue, 5 Nov 2013 14:31:22 +0000  (15:31 +0100)]  
 
Use NULL in long options data initialization 
 
Steven Schubiger  [Tue, 29 Oct 2013 19:12:42 +0000  (20:12 +0100)]  
 
Don't fail if color string exists as file 
 
Steven Schubiger  [Sun, 20 Oct 2013 15:05:48 +0000  (17:05 +0200)]  
 
Document sequences being used 
 
Steven Schubiger  [Thu, 5 Sep 2013 11:36:26 +0000  (13:36 +0200)]  
 
Clear pointer before reusing 
 
Steven Schubiger  [Wed, 28 Aug 2013 20:38:54 +0000  (22:38 +0200)]  
 
Swap parameters of print_line 
 
Steven Schubiger  [Sat, 24 Aug 2013 20:12:39 +0000  (22:12 +0200)]  
 
Replace option part of identifiers with arg 
 
Steven Schubiger  [Thu, 22 Aug 2013 13:25:53 +0000  (15:25 +0200)]  
 
Add assertion in process_file_option 
 
Steven Schubiger  [Wed, 21 Aug 2013 19:53:10 +0000  (21:53 +0200)]  
 
Initialize file pointer 
 
Steven Schubiger  [Sun, 18 Aug 2013 20:44:00 +0000  (22:44 +0200)]  
 
Avoid gmake specific Makefile idiom 
 
Example make failure: 
Using $< in a non-suffix rule context is a GNUmake idiom (line 11 of Makefile) 
 
Steven Schubiger  [Sat, 17 Aug 2013 15:22:12 +0000  (17:22 +0200)]  
 
Extend feature test macro 
 
Defining _POSIX_C_SOURCE=200809L fixes compilation currently under 
Net/Open/MirBSD (and possibly more). 
 
Steven Schubiger  [Fri, 9 Aug 2013 21:40:56 +0000  (23:40 +0200)]  
 
Test failures 
 
Steven Schubiger  [Sun, 4 Aug 2013 15:18:30 +0000  (17:18 +0200)]  
 
colorize 0.51 
 
Steven Schubiger  [Sat, 3 Aug 2013 21:01:28 +0000  (23:01 +0200)]  
 
Print diagnostic for wrong count of arguments 
 
Steven Schubiger  [Sat, 3 Aug 2013 17:55:47 +0000  (19:55 +0200)]  
 
Quote original unrecognized color name
This fixes the name being quoted for bold colors:
[sts@kronos colorize-
eaf4e19 ]$ ./colorize Greeen
./colorize: foreground color 'greeen' not recognized
 
Steven Schubiger  [Wed, 31 Jul 2013 16:25:48 +0000  (18:25 +0200)]  
 
Add vfprintf_diag and macro 
 
Steven Schubiger  [Tue, 30 Jul 2013 21:21:05 +0000  (23:21 +0200)]  
 
Revert "Make vfprintf_{fail,diag} wrappers"
This reverts commit 
fbbedc1d43af9c4fbc92611db19c617378dce2e8 .
Undo as variadic macros are not allowed in C89.
 
Steven Schubiger  [Sat, 27 Jul 2013 16:01:00 +0000  (18:01 +0200)]  
 
Make vfprintf_{fail,diag} wrappers 
 
Steven Schubiger  [Tue, 16 Jul 2013 20:19:11 +0000  (22:19 +0200)]  
 
Check for non-empty line 
 
Steven Schubiger  [Sat, 13 Jul 2013 20:47:54 +0000  (22:47 +0200)]  
 
Eliminate stream modes 
 
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. 
 
Steven Schubiger  [Thu, 4 Jul 2013 09:12:45 +0000  (11:12 +0200)]  
 
Tighten scope of test 
 
Steven Schubiger  [Wed, 3 Jul 2013 21:40:37 +0000  (23:40 +0200)]  
 
Clean sequences more strictly 
 
Steven Schubiger  [Sun, 16 Jun 2013 12:34:28 +0000  (14:34 +0200)]  
 
Mention that sequences are added on a line basis 
 
Steven Schubiger  [Tue, 28 May 2013 15:56:18 +0000  (17:56 +0200)]  
 
Bail out if both clean switches are provided 
 
Steven Schubiger  [Sat, 18 May 2013 21:41:27 +0000  (23:41 +0200)]  
 
Allow for DEBUG to be overridden 
 
Steven Schubiger  [Mon, 13 May 2013 13:18:17 +0000  (15:18 +0200)]  
 
Add note in line printing function 
 
Steven Schubiger  [Tue, 7 May 2013 20:16:33 +0000  (22:16 +0200)]  
 
Double space at end of sentence 
 
Steven Schubiger  [Mon, 29 Apr 2013 20:01:49 +0000  (22:01 +0200)]  
 
First draft of man page 
 
Steven Schubiger  [Fri, 26 Apr 2013 21:18:05 +0000  (23:18 +0200)]  
 
Introduce calloc wrappers and zero memory 
 
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). 
 
Steven Schubiger  [Wed, 24 Apr 2013 11:58:44 +0000  (13:58 +0200)]  
 
colorize 0.50 
 
Steven Schubiger  [Wed, 24 Apr 2013 11:34:44 +0000  (13:34 +0200)]  
 
Test clean-all feature 
 
Steven Schubiger  [Tue, 9 Apr 2013 19:02:52 +0000  (21:02 +0200)]  
 
Clean text from all color escape sequences 
 
Steven Schubiger  [Tue, 5 Mar 2013 13:22:47 +0000  (14:22 +0100)]  
 
Reduce short options code 
 
Steven Schubiger  [Mon, 4 Mar 2013 22:59:43 +0000  (23:59 +0100)]  
 
Optimize parsing command-line options 
 
Steven Schubiger  [Sun, 3 Mar 2013 14:28:31 +0000  (15:28 +0100)]  
 
Test count of sequences being printed 
 
Steven Schubiger  [Sun, 3 Mar 2013 12:34:44 +0000  (13:34 +0100)]  
 
Don't print pair of sequences at end-of-file 
 
Steven Schubiger  [Sun, 24 Feb 2013 22:54:24 +0000  (23:54 +0100)]  
 
Add blank line 
 
Steven Schubiger  [Tue, 19 Feb 2013 17:10:16 +0000  (18:10 +0100)]  
 
Print actual color separator in help output 
 
Steven Schubiger  [Tue, 19 Feb 2013 11:09:52 +0000  (12:09 +0100)]  
 
Define color separator once 
 
Steven Schubiger  [Mon, 18 Feb 2013 22:20:10 +0000  (23:20 +0100)]  
 
Adjust format specifier for unsigned integers 
 
Steven Schubiger  [Sun, 17 Feb 2013 19:12:51 +0000  (20:12 +0100)]  
 
colorize 0.49 
 
Steven Schubiger  [Sun, 17 Feb 2013 18:00:20 +0000  (19:00 +0100)]  
 
Use size_t instead of unsigned integer type 
 
Steven Schubiger  [Fri, 15 Feb 2013 14:43:29 +0000  (15:43 +0100)]  
 
Enclose valgrind test in skip block 
 
Steven Schubiger  [Fri, 15 Feb 2013 14:21:43 +0000  (15:21 +0100)]  
 
Narrow scope of variables 
 
Steven Schubiger  [Mon, 11 Feb 2013 00:32:06 +0000  (01:32  +0100)]  
 
Advance position for end sequence 
 
Steven Schubiger  [Sun, 10 Feb 2013 19:20:22 +0000  (20:20 +0100)]  
 
Keep makefile simple 
 
Steven Schubiger  [Sat, 9 Feb 2013 20:30:56 +0000  (21:30 +0100)]  
 
Improve wrapping memory functions 
 
Steven Schubiger  [Fri, 8 Feb 2013 23:40:01 +0000  (00:40  +0100)]  
 
Test clean feature 
 
Steven Schubiger  [Fri, 8 Feb 2013 14:42:21 +0000  (15:42 +0100)]  
 
Skip invalid sequences correctly 
 
Steven Schubiger  [Thu, 7 Feb 2013 22:50:09 +0000  (23:50 +0100)]  
 
Clean text from color escape sequences 
 
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. 
 
Steven Schubiger  [Mon, 28 Jan 2013 19:10:22 +0000  (20:10 +0100)]  
 
Enhance message if color string exists as file 
 
Steven Schubiger  [Fri, 25 Jan 2013 10:03:31 +0000  (11:03 +0100)]  
 
Capitalize first letter of diagnostics 
 
Steven Schubiger  [Thu, 24 Jan 2013 23:55:17 +0000  (00:55  +0100)]  
 
update copyright year and increase version 
 
Steven Schubiger  [Thu, 24 Jan 2013 23:45:50 +0000  (00:45  +0100)]  
 
add -Wno-unused-parameter 
 
Steven Schubiger  [Thu, 24 Jan 2013 22:59:34 +0000  (23:59 +0100)]  
 
Wrap memory allocation functions 
 
This covers currently calls to malloc(), realloc() and the custom 
strdup() (which uses malloc, too).  If allocation of memory fails 
(i.e., NULL is returned from one of former two calls), a fatal 
diagnostic is emitted (accompanied by source filename and line 
number if compiled with DEBUG=1). 
 
Steven Schubiger  [Tue, 18 Dec 2012 22:07:43 +0000  (23:07 +0100)]  
 
Initial commit.