Skip to content

Commit fc006e3

Browse files
committed
remove startup intro animation from main menu
1 parent a489076 commit fc006e3

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

mole

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -188,50 +188,6 @@ ${GREEN}|_| |_|\___/|_|\___|${NC} ${GREEN}${MOLE_TAGLINE}${NC}
188188
EOF
189189
}
190190

191-
animate_mole_intro() {
192-
if [[ ! -t 1 ]]; then
193-
return
194-
fi
195-
196-
clear_screen
197-
printf '\n'
198-
hide_cursor
199-
200-
local -a mole_lines=()
201-
202-
while IFS= read -r line; do
203-
mole_lines+=("$line")
204-
done << 'EOF'
205-
/\_/\
206-
____/ o o \
207-
/~____ =o= /
208-
(______)__m_m)
209-
/ \
210-
__/ /\ \__
211-
/__/ \__\_
212-
EOF
213-
214-
local idx
215-
local body_cutoff=4
216-
local body_color="${PURPLE}"
217-
local ground_color="${GREEN}"
218-
219-
for idx in "${!mole_lines[@]}"; do
220-
if ((idx < body_cutoff)); then
221-
printf "%s\n" "${body_color}${mole_lines[$idx]}${NC}"
222-
else
223-
printf "%s\n" "${ground_color}${mole_lines[$idx]}${NC}"
224-
fi
225-
sleep 0.1
226-
done
227-
228-
printf '\n'
229-
sleep 0.5
230-
231-
printf '\033[2J\033[H'
232-
show_cursor
233-
}
234-
235191
show_version() {
236192
local os_ver
237193
if command -v sw_vers > /dev/null; then
@@ -796,20 +752,6 @@ show_main_menu() {
796752
}
797753

798754
interactive_main_menu() {
799-
if [[ -t 1 ]]; then
800-
local tty_name
801-
tty_name=$(tty 2> /dev/null || echo "")
802-
if [[ -n "$tty_name" ]]; then
803-
local flag_file
804-
local cache_dir="$HOME/.cache/mole"
805-
ensure_user_dir "$cache_dir"
806-
flag_file="$cache_dir/intro_$(echo "$tty_name" | LC_ALL=C tr -c '[:alnum:]_' '_')"
807-
if [[ ! -f "$flag_file" ]]; then
808-
animate_mole_intro
809-
ensure_user_file "$flag_file"
810-
fi
811-
fi
812-
fi
813755
local current_option=1
814756
local first_draw=true
815757
local brand_banner=""

0 commit comments

Comments
 (0)