Preview a row of palette variables and effects

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_sample_row

Purpose

Render sample output for each supplied palette variable name.

Behavior

  • Resolve each name through Bash eval.
  • Display the name/color and bold, faint, italic, underline, reverse and strike samples.

Arguments

  • $@ — Names of already-defined color variables (not literal color values).

Inputs (globals)

Named palette variables and FX_* effect sequences; RESET.

Output

Prints one demonstration line per supplied variable, then a blank line.

Returns

Exit status of the final printf.

Usage

  sgnd_sample_row BLUE BRIGHT_BLUE DARK_BLUE

Notes

Pass trusted variable names only; implementation resolves the names with eval.