mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 00:09:15 +00:00
feat: add drain_pending_input to swallow trackpad scroll arrow bursts
This commit is contained in:
1959
bin/analyze.sh
Executable file
1959
bin/analyze.sh
Executable file
File diff suppressed because it is too large
Load Diff
@@ -134,6 +134,11 @@ read_key() {
|
|||||||
*) echo "OTHER" ;;
|
*) echo "OTHER" ;;
|
||||||
esac
|
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
|
# Menu display helper
|
||||||
show_menu_option() {
|
show_menu_option() {
|
||||||
|
|||||||
Reference in New Issue
Block a user