This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-bash_manager
mirror of
https://github.com/jrtechs/bash_manager.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Added ansiConfig.sh to scripts/
pull/7/head
Archund
6 years ago
parent
a4f8b3f2d5
commit
aebbea59ea
1 changed files
with
44 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
"
Write
Preview
Loading…
Cancel
Save