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:
Andrew Hamilton 2019-07-09 12:00:39 +10:00
parent ee064f00af
commit f6cb615c97
16 changed files with 178 additions and 100 deletions

View file

@ -1,15 +1,15 @@
(Bsize:(B 12.0 B(B (12 bytes)(B
(Bpermissions:(B ?rwxr-xr-x(B (755)(B
size: 12.0 B (12 bytes)
permissions: ?rwxr-xr-x (755)
(Bmodified time:(B Sun Jan 31 23:14:05 2016(B (1454282045 secs)(B
(Bcreation time:(B Sun Jan 31 23:14:05 2016(B (1454282045 secs)(B
(Baccess time:(B Sun Jan 31 23:14:07 2016(B (1454282047 secs)(B
modified time: Sun Jan 31 23:14:05 2016 (1454282045 secs)
creation time: Sun Jan 31 23:14:05 2016 (1454282045 secs)
access time: Sun Jan 31 23:14:07 2016 (1454282047 secs)
(Bowner:(B foo(B (1111 uid)(B
(Bgroup:(B foo(B (1111 gid)(B
owner: foo (1111 uid)
group: foo (1111 gid)
(Bhardlinks:(B 2
(Bsymlink:(B no
hardlinks: 2
symlink: no
(Bmime type:(B text/x-python; charset=us-ascii
(Bfile type:(B Python script, ASCII text executable (B
mime type: text/x-python; charset=us-ascii
file type: Python script, ASCII text executable