This file is part of eRCaGuy_hello_world: https://github.com/ElectricRCAircraftGuy/eRCaGuy_hello_world
-
Download the library
curl -LO https://raw.githubusercontent.com/ElectricRCAircraftGuy/eRCaGuy_hello_world/master/bash/ansi_text_format_lib.sh
-
In your bash script, use it like this
#!/usr/bin/env bash # import the library . ansi_text_format_lib.sh # use it # Set the format for the `f` variable set_f ANSI_BOLD ANSI_UNDERLINE ANSI_SLOW_BLINK ANSI_FG_BR_BLU # Now use the `f` and `F` format variables to format text echo -e "${f}This string is bold, underlined, blinking, bright blue.${F} This is not."