From b79574ee823900c21759628f92cf036271847afc Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sat, 21 Oct 2017 15:26:42 -0700 Subject: 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. --- scripts/fg-bg.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/fg-bg.sh (limited to 'scripts/fg-bg.sh') 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" -- cgit v1.2.3-54-g00ecf