#!/bin/sh

# This file brought to you spam free by www.GhettoBSD.org
# Have something to contribute? Let me know!

clear
c0="[0;"
c1="[1;"
c2="[2;"
c4="[4;"
c5="[5;"
c7="[7;"

echo "
${c1}31mF${c1}32mr${c1}33me${c1}34me${c1}35mB${c1}36mS${c1}37mD${c0}m${c7}30m      ${c7}31m       ${c7}32m        ${c7}33m          ${c7}34m           ${c7}35m            ${c7}36m             ${c7}37m              ${c7}0m
       LS_COLORS
               The  format  of  this variable is reminiscent of the termcap(5)
               file format; a colon-separated list of expressions of the  form
               xx=string,  where xx is a two-character variable name.  The
               variables with their associated defaults are:

                   no   0      Normal (non-filename) text
                   fi   0      Regular file
                   di   01;34  Directory
                   ln   01;36  Symbolic link
                   pi   33     Named pipe (FIFO)
                   so   01;35  Socket
                   do   01;35  Door
                   bd   01;33  Block device
                   cd   01;32  Character device
                   ex   01;32  Executable file
                   mi   (none) Missing file (defaults to fi)
                   or   (none) Orphaned symbolic link (defaults to ln)
                   lc   ^[[    Left code
                   rc   m      Right code
                   ec   (none) End code (replaces lc+no+rc)

                       0   to restore default color
                       1   for brighter colors
                       4   for underlined text
                       5   for flashing text
                       30  for black foreground
                       31  for red foreground
                       32  for green foreground
                       33  for yellow (or brown) foreground
                       34  for blue foreground
                       35  for purple foreground
                       36  for cyan foreground
                       37  for white (or gray) foreground
                       40  for black background
                       41  for red background
                       42  for green background
                       43  for yellow (or brown) background
                       44  for blue background
                       45  for purple background
                       46  for cyan background
                       47  for white (or gray) background



[1;37mThis is the FreeBSD ANSI color chart.

Use: [1;34meffect;text;background.
[1;37mMOTD example: [1;34m^[[1;35;44m[1;31mThis is an example [1;34m^[[0m [1;37m= [1;35;44mThis is an example[0m 
[1;37mTo enter the escape sequence press: [1;34mctrl+v+[ [0m

Background
color   black   red     green   yellow  blue    magenta cyan    white
code    40      41      42      43      44      45      46      47   
        ${c0}0m
0       ${c0}0m${c0}40mblack   ${c0}41mred     ${c0}42mgreen   ${c0}43myellow  ${c0}44mblue    ${c0}45mmagenta ${c0}46mcyan    ${c0}47mwhite   ${c0}0mDefault color
1       ${c0}0m${c1}40mblack   ${c1}41mred     ${c1}42mgreen   ${c1}43myellow  ${c1}44mblue    ${c1}45mmagenta ${c1}46mcyan    ${c1}47mwhite   ${c1}0mBrighter
2       ${c0}0m${c2}40mblack   ${c2}41mred     ${c2}42mgreen   ${c2}43myellow  ${c2}44mblue    ${c2}45mmagenta ${c2}46mcyan    ${c2}47mwhite   ${c2}0mDimmer
        ${c0}0m
4       ${c0}0m${c4}40mblack   ${c4}41mred     ${c4}42mgreen   ${c4}43myellow  ${c4}44mblue    ${c4}45mmagenta ${c4}46mcyan    ${c4}47mwhite   ${c4}0mUnderlined text
        ${c0}0m
5       ${c0}0m${c5}40mblack   ${c5}41mred     ${c5}42mgreen   ${c5}43myellow  ${c5}44mblue    ${c5}45mmagenta ${c5}46mcyan    ${c5}47mwhite   ${c5}0mFlashing text
        ${c0}0m
7       ${c0}0m${c7}40mblack   ${c7}41mred     ${c7}42mgreen   ${c7}43myellow  ${c7}44mblue    ${c7}45mmagenta ${c7}46mcyan    ${c7}47mwhite   ${c7}0mReverse video


Text color
 black    red     green   yellow  blue    magenta cyan    white
   30      31      32      33      34      35      36      37

0 ${c0}0m${c0}30mblack   ${c0}31mred     ${c0}32mgreen   ${c0}33myellow  ${c0}34mblue    ${c0}35mmagenta ${c0}36mcyan    ${c0}37mwhite   ${c0}0mDefault color
        ${c0}0m
1 ${c0}0m${c1}30mblack   ${c1}31mred     ${c1}32mgreen   ${c1}33myellow  ${c1}34mblue    ${c1}35mmagenta ${c1}36mcyan    ${c1}37mwhite   ${c1}0mBrighter
        ${c0}0m
2 ${c0}0m${c2}30mblack   ${c2}31mred     ${c2}32mgreen   ${c2}33myellow  ${c2}34mblue    ${c2}35mmagenta ${c2}36mcyan    ${c2}37mwhite   ${c2}0mDimmer
        ${c0}0m
4 ${c0}0m${c4}30mblack   ${c4}31mred     ${c4}32mgreen   ${c4}33myellow  ${c4}34mblue    ${c4}35mmagenta ${c4}36mcyan    ${c4}37mwhite   ${c4}0mUnderlined text
        ${c0}0m
5 ${c0}0m${c5}30mblack   ${c5}31mred     ${c5}32mgreen   ${c5}33myellow  ${c5}34mblue    ${c5}35mmagenta ${c5}36mcyan    ${c5}37mwhite   ${c5}0mFlashing text
        ${c0}0m
7 ${c0}0m${c7}30mblack   ${c7}31mred     ${c7}32mgreen   ${c7}33myellow  ${c7}34mblue    ${c7}35mmagenta ${c7}36mcyan    ${c7}37mwhite   ${c7}0mReverse video

${c1}31mF${c1}32mr${c1}33me${c1}34me${c1}35mB${c1}36mS${c1}37mD${c0}m${c7}30m     ${c7}31m     ${c7}32m     ${c7}33m      ${c7}34m      ${c7}35m      ${c7}36m      ${c7}37m      ${c7}0m
"
