Snapshot of my ocient config.

This commit is contained in:
2026-03-06 14:36:54 -05:00
parent 687b687220
commit 86aeda5d67
3 changed files with 55 additions and 2 deletions

View File

@@ -71,7 +71,60 @@ then
shift 1 shift 1
fi 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() 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[@]} for key in ${!map[@]}
do do

View File

@@ -92,7 +92,7 @@ set ansi_5="AA00AA"
set ansi_6="00AAAA" set ansi_6="00AAAA"
set ansi_7="BBBBBB" set ansi_7="BBBBBB"
set ansi_8="484848" set ansi_8="898989"
set ansi_9="FF5555" set ansi_9="FF5555"
set ansi_10="55FF55" set ansi_10="55FF55"
set ansi_11="FFFF55" set ansi_11="FFFF55"

View File

@@ -92,7 +92,7 @@ hi Tag ctermfg=darkblue
"hi StatusUnwrap ctermfg=236 ctermbg=none cterm=none "hi StatusUnwrap ctermfg=236 ctermbg=none cterm=none
hi StatusUnwrap ctermfg=58 ctermbg=none cterm=none hi StatusUnwrap ctermfg=58 ctermbg=none cterm=none
hi MetaFunction ctermfg=darkcyan start=<esc>[36m stop=<esc>[0m hi MetaFunction ctermfg=darkcyan start=<esc>[36m stop=<esc>[0m
hi Comment ctermfg=darkgrey cterm=none term=NONE term=none start=<esc>[38;5;242m stop=<esc>[0m hi Comment ctermfg=8 cterm=none term=NONE term=none start=<esc>[38;5;242m stop=<esc>[0m
hi Identifier ctermfg=cyan cterm=none term=none start=<esc>[96m stop=<esc>[0m hi Identifier ctermfg=cyan cterm=none term=none start=<esc>[96m stop=<esc>[0m
hi Object ctermfg=red term=none start=<esc>[91m stop=<esc>[0m hi Object ctermfg=red term=none start=<esc>[91m stop=<esc>[0m