All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All New Login

All gists matching topic Terminal

Recently created
Least recently created
Recently updated
Least recently updated
Erreur32's Avatar

Erreur32 / colors-in-terminal.sh

0 likes
0 forks
1 files
Last active 1 month ago
Bash Color Terminal
1 for code in {30..37}; do \
2 echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"; \
3 echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"; \
4 echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"; \
5 echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"; \
6 echo -e " \e[$((code+60))m"'\\e['"$((code+60))"'m'"\e[0m"; \
7 done
8
9 ## http://jafrog.com/2013/11/23/colors-in-terminal.html
Newer Older

Powered by Opengist ⋅ Load: 21ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文