tools: Added color to git_log output.
- Added a simple parser for termcodes to termstr. - Added missing 'italic' conversion in termstr. - Simplified termcode for 'normal'.
This commit is contained in:
parent
ee064f00af
commit
f6cb615c97
16 changed files with 178 additions and 100 deletions
|
|
@ -1,15 +1,15 @@
|
|||
(B[m[38;2;0;135;189m[48;2;0;0;0msize:(B[m[38;2;255;255;255m[48;2;0;0;0m 12.0 B(B[m[38;2;100;100;100m[48;2;0;0;0m (12 bytes)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mpermissions:(B[m[38;2;255;255;255m[48;2;0;0;0m ?rwxr-xr-x(B[m[38;2;100;100;100m[48;2;0;0;0m (755)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0msize:[m[38;2;255;255;255m[48;2;0;0;0m 12.0 B[m[38;2;100;100;100m[48;2;0;0;0m (12 bytes)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mpermissions:[m[38;2;255;255;255m[48;2;0;0;0m ?rwxr-xr-x[m[38;2;100;100;100m[48;2;0;0;0m (755)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mmodified time:(B[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016(B[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mcreation time:(B[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016(B[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0maccess time:(B[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:07 2016(B[m[38;2;100;100;100m[48;2;0;0;0m (1454282047 secs)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mmodified time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mcreation time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:05 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282045 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0maccess time:[m[38;2;255;255;255m[48;2;0;0;0m Sun Jan 31 23:14:07 2016[m[38;2;100;100;100m[48;2;0;0;0m (1454282047 secs)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mowner:(B[m[38;2;255;255;255m[48;2;0;0;0m foo(B[m[38;2;100;100;100m[48;2;0;0;0m (1111 uid)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mgroup:(B[m[38;2;255;255;255m[48;2;0;0;0m foo(B[m[38;2;100;100;100m[48;2;0;0;0m (1111 gid)(B[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mowner:[m[38;2;255;255;255m[48;2;0;0;0m foo[m[38;2;100;100;100m[48;2;0;0;0m (1111 uid)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mgroup:[m[38;2;255;255;255m[48;2;0;0;0m foo[m[38;2;100;100;100m[48;2;0;0;0m (1111 gid)[m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mhardlinks:(B[m[38;2;255;255;255m[48;2;0;0;0m 2
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0msymlink:(B[m[38;2;255;255;255m[48;2;0;0;0m no
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mhardlinks:[m[38;2;255;255;255m[48;2;0;0;0m 2
|
||||
[m[38;2;0;135;189m[48;2;0;0;0msymlink:[m[38;2;255;255;255m[48;2;0;0;0m no
|
||||
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mmime type:(B[m[38;2;255;255;255m[48;2;0;0;0m text/x-python; charset=us-ascii
|
||||
(B[m[38;2;0;135;189m[48;2;0;0;0mfile type:(B[m[38;2;255;255;255m[48;2;0;0;0m Python script, ASCII text executable (B[m
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mmime type:[m[38;2;255;255;255m[48;2;0;0;0m text/x-python; charset=us-ascii
|
||||
[m[38;2;0;135;189m[48;2;0;0;0mfile type:[m[38;2;255;255;255m[48;2;0;0;0m Python script, ASCII text executable [m
|
||||
Loading…
Add table
Add a link
Reference in a new issue