mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 19:15:04 +00:00
🐛 update
This commit is contained in:
@@ -35,19 +35,6 @@ clear_screen() {
|
||||
printf '\033[2J\033[H'
|
||||
}
|
||||
|
||||
show_header() {
|
||||
local title="$1"
|
||||
local subtitle="$2"
|
||||
|
||||
clear_screen
|
||||
echo -e "${BLUE}$title${NC}"
|
||||
echo "================================================="
|
||||
if [[ -n "$subtitle" ]]; then
|
||||
echo -e "${PURPLE}$subtitle${NC}"
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
# Keyboard input handling (simple and robust)
|
||||
read_key() {
|
||||
local key rest
|
||||
|
||||
5
mole
5
mole
@@ -47,11 +47,8 @@ show_main_menu() {
|
||||
local redraw_full="${2:-true}"
|
||||
|
||||
if [[ "$redraw_full" == "true" ]]; then
|
||||
show_header "🧹Mole - Dig deep to clean your mac."
|
||||
echo "🍎 Detected: $(detect_architecture) | 💾 Free space: $(get_free_space)"
|
||||
echo ""
|
||||
echo "What would you like to do?"
|
||||
echo ""
|
||||
echo "❤️ What do you want Mole to do for you?"
|
||||
fi
|
||||
|
||||
# Save cursor position before printing menu items
|
||||
|
||||
Reference in New Issue
Block a user