Browse Source

Added ansiConfig.sh to scripts/

pull/7/head
Archund 6 years ago
parent
commit
aebbea59ea
1 changed files with 44 additions and 0 deletions
  1. +44
    -0
      scripts/ansiConfig.sh

+ 44
- 0
scripts/ansiConfig.sh View File

@ -0,0 +1,44 @@
#!/bin/bash
# ANSI color setup
#use printf or echo -e
defineANSI() {
esc="\e"
# esc="\033"
# Foreground colors
FBLACK="${esc}[30m"
FRED="${esc}[31m"
FGREEN="${esc}[32m"
FYLLW="${esc}[33m"
FBLUE="${esc}[34m"
FPRPL="${esc}[35m"
FCYAN="${esc}[36m"
FWHITE="${esc}[37m"
# Background colors
BBLACK="${esc}[40m"
BRED="${esc}[41m"
BGREEN="${esc}[42m"
BYLLW="${esc}[43m"
BBLUE="${esc}[44m"
BPRPL="${esc}[45m"
BCYAN="${esc}[46m"
BWHITE="${esc}[47m"
# Bold, italic, underline, and inverse style toggles
BOLDON="${esc}[1m"
BOLDOFF="${esc}[22m"
ITALON="${esc}[3m"
ITALOFF="${esc}[23m"
UNDERON="${esc}[4m"
UNDEROFF="${esc}[24m"
INVON="${esc}[7m"
INVOFF="${esc}[27m"
}
reset="${esc}[0m"

Loading…
Cancel
Save