commit 1ba59c1213e09b82da16f49f4d13b0ecc608debc
parent 388df059af039b01161a76d7e194e0e17a870551
Author: Chris Bracken <chris@bracken.jp>
Date: Thu, 12 Dec 2019 21:15:15 -0800
Update colours for less command
Also adds a few comments.
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/.colors b/.colors
@@ -1,10 +1,13 @@
# .colors
+#
+# 0x=normal, 1x=bold, 4x=underline, 5x=blink, 7x=inverse
+# 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white
-# color support for less
+# Colour support for less.
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
-export LESS_TERMCAP_me=$'\E[0m' # end mode
-export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
-export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode - info box
+export LESS_TERMCAP_me=$'\E[0m' # end blinking, bold
+export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout
+export LESS_TERMCAP_se=$'\E[0m' # end standout
+export LESS_TERMCAP_us=$'\E[04;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # end underline
-export LESS_TERMCAP_us=$'\E[01;32m' # begin underline