From 41088a0637ebb8e9f87ad197d2e8fb416bf0c62b Mon Sep 17 00:00:00 2001 From: Tw93 Date: Thu, 2 Oct 2025 19:36:29 +0800 Subject: [PATCH] chore: drain pending input in volumes loop to suppress visible ^[[A/^[[B from trackpad --- bin/analyze.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/analyze.sh b/bin/analyze.sh index 1f04e41..c38512c 100755 --- a/bin/analyze.sh +++ b/bin/analyze.sh @@ -1395,6 +1395,8 @@ show_volumes_overview() { local total_items=$(wc -l < "$temp_volumes" | tr -d ' ') while true; do + # Drain burst input (trackpad scroll -> many arrows) + type drain_pending_input >/dev/null 2>&1 && drain_pending_input # Build output buffer to reduce flicker local output="" output+="\033[H\033[J"