-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.sh
More file actions
42 lines (39 loc) · 2.37 KB
/
display.sh
File metadata and controls
42 lines (39 loc) · 2.37 KB
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
38
39
40
41
42
#!/bin/bash
# Display functions for VideoSensi Pro
display_logo() {
clear
local color=$CYAN
echo -e "$color"
echo -e "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
echo -e "┃ ██╗ ██╗██╗██████╗ ███████╗ ██████╗"
echo -e "┃ ██║ ██║██║██╔══██╗██╔════╝██╔═══██╗"
echo -e "┃ ██║ ██║██║██║ ██║█████╗ ██║ ██║"
echo -e "┃ ╚██╗ ██╔╝██║██║ ██║██╔══╝ ██║ ██║"
echo -e "┃ ╚████╔╝ ██║██████╔╝███████╗╚██████╔╝"
echo -e "┃ ╚═══╝ ╚═╝╚═════╝ ╚══════╝ ╚═════╝ "
echo -e "┠──────────────────────────────────────┨"
echo -e "┃ $TOOL_NAME v$VERSION "
echo -e "┃ Crafted by : $AUTHOR "
echo -e "┃ Telegram : @JubairFF "
echo -e "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
echo -e "$color┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
echo -e "$color┃ Tool Loaded! "
echo -e "$color┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
echo -e "$RESET"
local spinner=("⠋" "⠙" "⠹" "⠸" "⠼" "⠴" "⠦" "⠧" "⠇" "⠏")
for i in {1..10}; do
echo -en "\r$YELLOW Loading... ${spinner[$((i % 10))]}$RESET"
sleep 0.1
done
echo -e "\r$GREEN Tool loaded successfully!$RESET"
sleep 0.5
}
display_menu() {
local title="$1"
local color=$(get_random_color)
echo -e "$color"
echo -e "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
echo -e "┃ $title "
echo -e "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
echo -e "$RESET"
}