Also allow bold, underline and printing colors in linux kernel VTs

bold works, printing colors doesn't change anything and underline
doesn't _break_.
This commit is contained in:
Fabian Homborg 2015-09-10 12:25:57 +02:00
parent a66d44054c
commit 40df11b162

View file

@ -297,7 +297,7 @@ function __fish_config_interactive -d "Initializations that should be performed
# Don't allow setting color other than what linux offers (see #2001) # Don't allow setting color other than what linux offers (see #2001)
functions -e set_color functions -e set_color
function set_color function set_color
set -l term_colors black red green yellow blue magenta cyan white normal set -l term_colors black red green yellow blue magenta cyan white normal --bold -o -c --print-colors -u --underline
for a in $argv for a in $argv
if not contains -- $a $term_colors if not contains -- $a $term_colors
echo "Color not valid in TERM = linux: $a" echo "Color not valid in TERM = linux: $a"