mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 16:49:41 +00:00
chore: drain pending input in volumes loop to suppress visible ^[[A/^[[B from trackpad
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user