]> git.phdru.name Git - dotfiles.git/blobdiff - lib/config/less/dark_bg
Set LESS_TERMCAP_* for light and dark backgrounds
[dotfiles.git] / lib / config / less / dark_bg
diff --git a/lib/config/less/dark_bg b/lib/config/less/dark_bg
new file mode 100644 (file)
index 0000000..a547352
--- /dev/null
@@ -0,0 +1,14 @@
+# See https://unix.stackexchange.com/q/108699 and man terminfo
+export LESS_TERMCAP_ZN="`tput ssubm`" # Enter subscript mode
+export LESS_TERMCAP_ZO="`tput ssupm`" # Enter superscript mode
+export LESS_TERMCAP_ZV="`tput rsubm`" # End subscript mode
+export LESS_TERMCAP_ZW="`tput rsupm`" # End superscript mode
+export LESS_TERMCAP_mb="`tput bold; tput setaf 2`" # begin blinking - bold green
+export LESS_TERMCAP_md="`tput bold; tput setaf 6`" # begin bold - cyan
+export LESS_TERMCAP_me="`tput sgr0`" # end mode
+export LESS_TERMCAP_mh="`tput dim`" # half-bright mode
+export LESS_TERMCAP_mr="`tput rev`" # reverse video mode
+export LESS_TERMCAP_se="`tput rmso; tput sgr0`" # end standout-mode
+export LESS_TERMCAP_so="`tput bold; tput setaf 7; tput setab 4`" # begin standout-mode (info box) - white on blue
+export LESS_TERMCAP_ue="`tput rmul; tput sgr0`" # end underline
+export LESS_TERMCAP_us="`tput smul; tput bold; tput setaf 7`" #  # begin underline - white