aboutsummaryrefslogtreecommitdiffstats
path: root/ui/helpers.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-02-21 15:54:08 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-22 19:44:07 +0100
commitf5aa6433f7c3ba4d8bc09f3e243f7acb40920743 (patch)
tree96013ee3fc7dfe3d476c8d46005b3937d752127e /ui/helpers.go
parent35a71140f94a5c91cc1b19cfc43b30b3aef16130 (diff)
downloadaerc-f5aa6433f7c3ba4d8bc09f3e243f7acb40920743.tar.gz
filters: port colorize to awk
Python is not available on all systems. Port the colorize filter to awk as it is a more widespread POSIX utility. Users are free to copy the filter into their home dir and tweak the colors to their needs. The highlighted items are: =============== ======= ======= ========= ================= Item Red Green Blue Color =============== ======= ======= ========= ================= quoted text 1 95 175 255 Blue quoted text 2 255 135 0 Orange quoted text 3 175 135 255 Purple quoted text 4 255 95 215 Pink quoted text * 128 128 128 Grey diff meta 255 255 255 White bold diff chunk 205 0 205 Cyan diff added 0 205 0 Red diff removed 205 0 0 Green signature 175 135 255 Purple header 175 135 255 Purple url 255 255 175 Yellow =============== ======= ======= ========= ================= This assumes a terminal emulator with true color support and with a dark/black background. Link: https://github.com/termstandard/colors Signed-off-by: Robin Jarry <robin@jarry.cc> (cherry picked from commit df8c129235d9f26892caf89f056adc0e16b3d6b6)
Diffstat (limited to 'ui/helpers.go')
0 files changed, 0 insertions, 0 deletions