fetch
fetch copied to clipboard
flag(ASCII): Add flag -c; Dynamically set colors for output
Old screenFetch functionality:
-c string You may change the outputted colors with -c. The format is
as follows: [0-9][0-9],[0-9][0-9]. The first argument controls the
ASCII logo colors and the label colors. The second argument
controls the colors of the information found. One argument may be
used without the other. For terminals supporting 256 colors argument
may also contain other terminal control codes for bold, underline etc.
separated by semicolon. For example -c "4;1,1;2" will produce bold
blue and dim red.
This allowed to set colors in output dynamically. The old way was gross as far as parsing it went, but it worked for the most part. With the addition of the ${config_ascii[colors]} array, this will be easier to reference and act upon. Need to determine if the old way of INPUTTING the information in the argument is worth keeping or if we need to rethink that logic.