Skip to content

loRes228/colores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 

Repository files navigation

Installation

  • сURL

curl -o /usr/local/bin/colores https://raw.githubusercontent.com/loRes228/colores/main/colores
chmod +x /usr/local/bin/colores

  • Wget

wget -O /usr/local/bin/colores https://raw.githubusercontent.com/loRes228/colores/main/colores
chmod +x /usr/local/bin/colores

Usage examples

  • Show help

colores -help

  • Coloring text or background

echo -e "$(colores -fore 0 255 0)Green text using RGB color.$(colores -reset)"
echo -e "$(colores -back ff0000)Red background using HEX color.$(colores -reset)"
echo -e "$(colores -fore 200 -back 20)Purple text and blue background using ANSI color.$(colores -reset)"



  • Change the text style

echo -e "$(colores -style bold)Bold text$(colores -reset)"
echo -e "$(colores -style italic)Italic text$(colores -reset)"
echo -e "$(colores -style underline)Underline text$(colores -reset)"
echo -e "$(colores -style inverted)Inverted text$(colores -reset)"
echo -e "$(colores -style flashing)Flashing text$(colores -reset)"
echo -e "$(colores -style bold italic underline inverted flashing)All styles$(colores -reset)"



  • Using markers

echo -e "$(colores -mark success)Command executed successfully."
echo -e "$(colores -mark error)Command failed to execute."
echo -e "$(colores -mark warning)Proceed with caution."
echo -e "$(colores -mark info)Additional information provided."
echo -e "$(colores -mark question)Requesting user input."
echo -e "$(colores -mark debug)Debugging information."
echo -e "$(colores -mark on)Command enabled."
echo -e "$(colores -mark off)Command disabled."
echo -e "$(colores -mark custom 'TEXT' 160 0 255)Custom marker using RGB color."
echo -e "$(colores -mark custom 'TEXT' 00C8FF)Custom marker using HEX color."
echo -e "$(colores -mark custom 'TEXT' 215)Custom marker using ANSI color."

About

Script for customizing text appearance in the terminal.

Topics

Resources

Stars

Watchers

Forks

Languages