summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Wilm <jwilm@users.noreply.github.com>2017-10-21 15:26:42 -0700
committerGitHub <noreply@github.com>2017-10-21 15:26:42 -0700
commitb79574ee823900c21759628f92cf036271847afc (patch)
tree0147c31cde54febf034749b095513d3b5b376130 /scripts
parent7a5eebd0941169396557b80084c0c8f354c6840f (diff)
Fix solid background color opacity (#847)
Since landing the patch adding transparency support to Alacritty, there's been an issue where othewise solid background cells were also being rendered partially transparent. Now, all filled background cells are rendered fully opaque. Some logic was added to support discarding filled backgrounds which had the same color as the default background. This means that, if the default background is #000 and a cell has that background, it will never be rendered opaque. This may not be correct. Note that many truecolor vim color schemes print spaces for default colored background cells. Performance can be dramatically improved by using ctermbg=NONE guibg=NONE to skip rendering those cells.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fg-bg.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/fg-bg.sh b/scripts/fg-bg.sh
new file mode 100755
index 00000000..f1ad4d0c
--- /dev/null
+++ b/scripts/fg-bg.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+printf "Fg=Black, Bg=Background \e[30;49mTEST\e[m\n"
+printf "Fg=Black, Bg=Black \e[30;40mTEST\e[m\n"
+printf "Fg=Foreground,Bg=Background \e[39;49mTEST\e[m\n"
+printf "Fg=Foreground,Bg=Black \e[39;40mTEST\e[m\n"
+printf "Fg=Foreground,Bg=White \e[39;47mTEST\e[m\n"
+printf "Fg=White, Bg=Foreground \e[37;39mTEST\e[m\n"
+printf "Fg=Black, Bg=Background, Inverse \e[7;30;49mTEST\e[m\n"
+printf "Fg=Black, Bg=Black, Inverse \e[7;30;40mTEST\e[m\n"
+printf "Fg=Foreground,Bg=Background, Inverse \e[7;39;49mTEST\e[m\n"
+printf "Fg=Foreground,Bg=Black, Inverse \e[7;39;40mTEST\e[m\n"
+printf "Fg=Foreground,Bg=White, Inverse \e[7;39;47mTEST\e[m\n"
+printf "Fg=White, Bg=Foreground, Inverse \e[7;37;39mTEST\e[m\n"