Snapshot of my ocient config.
This commit is contained in:
@@ -71,7 +71,60 @@ then
|
||||
shift 1
|
||||
fi
|
||||
|
||||
function dump_color()
|
||||
{
|
||||
text_color=$1
|
||||
shift 1
|
||||
name=$1
|
||||
shift 1
|
||||
ext_name=$1
|
||||
shift 1
|
||||
|
||||
do_reverse="reverse"
|
||||
do_reverse=""
|
||||
|
||||
printf "%-24s%-7s |" ${name} ${ext_name}
|
||||
printf "`$0 reset ${do_reverse} bg:${text_color} fg:${name}`native-sample`$0 reset`|"
|
||||
if [[ ! -v CSHENV_TERMINAL_COLORS ]] || (( ${CSHENV_TERMINAL_COLORS} >= 256 ))
|
||||
then
|
||||
printf "`env CSHENV_TERMINAL_COLORS=256 $0 reset ${do_reverse} bg:${text_color} fg:${name}`8-bit sample`$0 reset`|"
|
||||
fi
|
||||
if [[ ! -v CSHENV_TERMINAL_COLORS ]] || (( ${CSHENV_TERMINAL_COLORS} >= 16 ))
|
||||
then
|
||||
printf "`env CSHENV_TERMINAL_COLORS=16 $0 reset ${do_reverse} bg:${text_color} fg:${name}`4-bit sample`$0 reset`|"
|
||||
fi
|
||||
if [[ ! -v CSHENV_TERMINAL_COLORS ]] || (( ${CSHENV_TERMINAL_COLORS} >= 8 ))
|
||||
then
|
||||
printf "`env CSHENV_TERMINAL_COLORS=8 $0 reset ${do_reverse} bg:${text_color} fg:${name}`3-bit sample`$0 reset`|"
|
||||
fi
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
function dump_colors()
|
||||
{
|
||||
for key in ${!map[@]}
|
||||
do
|
||||
case $key in
|
||||
*bright*) text_color="000000" ;;
|
||||
*black*) text_color="ffffff" ;;
|
||||
*) text_color="000000" ;;
|
||||
esac
|
||||
dump_color ${text_color} ${key} ${map[${key}]}
|
||||
done
|
||||
|
||||
val=0
|
||||
while (( ${val} < 16 ))
|
||||
do
|
||||
#text_color="cccccc"
|
||||
text_color="000000"
|
||||
dump_color ${text_color} ansi:${val} ansi:${val}
|
||||
val=$(( ${val} + 1 ))
|
||||
done
|
||||
|
||||
exit 0
|
||||
}
|
||||
|
||||
function xdump_colors()
|
||||
{
|
||||
for key in ${!map[@]}
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user