Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

2.3 Customization Options

AronazGithubz edited this page Oct 25, 2024 · 1 revision

Colors

To add colors to your terminal, you can use the following command:

echo -e ""

Foreground Colors

  • \033[30m - Black
  • \033[31m - Red
  • \033[32m - Green
  • \033[33m - Yellow
  • \033[34m - Blue
  • \033[35m - Magenta
  • \033[36m - Cyan
  • \033[37m - White
  • \033[90m - Bright Black (Gray)
  • \033[91m - Bright Red
  • \033[92m - Bright Green
  • \033[93m - Bright Yellow
  • \033[94m - Bright Blue
  • \033[95m - Bright Magenta
  • \033[96m - Bright Cyan
  • \033[97m - Bright White

Background Colors

  • \033[40m - Black
  • \033[41m - Red
  • \033[42m - Green
  • \033[43m - Yellow
  • \033[44m - Blue
  • \033[45m - Magenta
  • \033[46m - Cyan
  • \033[47m - White
  • \033[100m - Bright Black (Gray)
  • \033[101m - Bright Red
  • \033[102m - Bright Green
  • \033[103m - Bright Yellow
  • \033[104m - Bright Blue
  • \033[105m - Bright Magenta
  • \033[106m - Bright Cyan
  • \033[107m - Bright White

Text Formatting

  • \033[0m - Reset all attributes
  • \033[1m - Bold
  • \033[2m - Dim
  • \033[3m - Italic (not supported in all terminals)
  • \033[4m - Underline
  • \033[5m - Blink (not supported in all terminals)
  • \033[7m - Inverse (swap foreground and background)
  • \033[8m - Hidden (not visible)
  • \033[9m - Strikethrough

Additional Formatting

  • \033[22m - Normal intensity (turns off bold)
  • \033[24m - Not underlined
  • \033[27m - Positive image (inverse off)
  • \033[28m - Not hidden

Example Usage

Make sure to reset everything when switching to a new color. Here’s an example:

echo -e "\033[33mHello,\033[0m\033[44m World!"

Using Variables for Cleaner Code

You can also make it look cleaner by defining colors as variables:

RED='\033[31m'
GREEN='\033[32m'
RESET='\033[0m'

echo -e "${RED}Hello,${RESET} ${GREEN}World!"

cTerm logo

You can customise the logo in cterm into filters!
These filters are:

  • None: No filter at all, just a logo.
  • Rainbow: A rainbow filter you can apply to the logo
  • Metal: Add a metal look to the logo.

To apply the none filter,

  1. Open your preferred text editor.
  2. Look for line 6, or figlet cTerminal
  3. dont change it. if you have applied filters, then change it to figlet cTerminal
  4. Done

To apply to rainbow filter,

  1. Open your preferred text editor.
  2. Look for line 6, or figlet cTerminal
  3. Edit it to figlet --gay cTerminal
  4. Save, and reopen your terminal.
  5. You should see your rainbow logo.
  6. Done!

To apply the metal filter,

  1. Open your preferred text editor.
  2. Look for line 6, or figlet cTerminal
  3. Edit it to figlet --metal cTerminal
  4. Save, and reopen your terminal.
  5. You should see your metal logo.
  6. Done!

If you are a figlet pro, then customise it on your own!

Neofetch

You are free to change from the neofetch command to whatever commannd you choose.

If you want to change neofetch,

  1. Open your preferred text editor.
  2. Look for nine 8, or neofetch
  3. Change it and recode it to your liking.
  4. Done

Other

You can recode cterm to your liking.

Clone this wiki locally