1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 12:41:46 +00:00

feat: add drain_pending_input to swallow trackpad scroll arrow bursts

This commit is contained in:
Tw93
2025-10-02 18:52:26 +08:00
parent cd786bee89
commit f13dff2c17
2 changed files with 1964 additions and 0 deletions

1959
bin/analyze.sh Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -134,6 +134,11 @@ read_key() {
*) echo "OTHER" ;;
esac
}
# Drain any pending input bytes (used to swallow rapid trackpad scroll sequences)
drain_pending_input() {
while IFS= read -r -s -t 0 -n 1 _; do :; done
}
# Menu display helper
show_menu_option() {