-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.sh
More file actions
37 lines (30 loc) · 792 Bytes
/
colors.sh
File metadata and controls
37 lines (30 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#
# Copyright Droidefense API. All Rights Reserved.
# SPDX-License-Identifier: GNU GPL v3
#
#custom terminal colores
bold_red=`tput bold; tput setaf 1`
bold_green=`tput bold; tput setaf 2`
bold_yellow=`tput bold; tput setaf 3`
bold_blue=`tput bold; tput setaf 4`
bold_magenta=`tput bold; tput setaf 5`
bold_cyan=`tput bold; tput setaf 6`
bold_white=`tput bold; tput setaf 7`
normal_red=`tput setaf 1`
normal_green=`tput setaf 2`
normal_yellow=`tput setaf 3`
normal_blue=`tput setaf 4`
normal_magenta=`tput setaf 5`
normal_cyan=`tput setaf 6`
normal_white=`tput setaf 7`
reset=`tput sgr0`
function fail(){
echo "${bold_red}[ FAIL ] $1${reset}"
}
function ok(){
echo "${bold_green}[ SUCCESS ] $1${reset}"
}
function log(){
echo "${bold_yellow}[ LOG ] $1${reset}"
}