mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 22:49:12 +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 ' ')
|
local total_items=$(wc -l < "$temp_volumes" | tr -d ' ')
|
||||||
|
|
||||||
while true; do
|
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
|
# Build output buffer to reduce flicker
|
||||||
local output=""
|
local output=""
|
||||||
output+="\033[H\033[J"
|
output+="\033[H\033[J"
|
||||||
|
|||||||
Reference in New Issue
Block a user