1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 08:15:44 +00:00

Fix whitelist issue caused by retrieval list

This commit is contained in:
Tw93
2025-10-14 17:27:38 +08:00
parent 2fa24d3771
commit 6d343194ff
2 changed files with 39 additions and 37 deletions

View File

@@ -186,9 +186,9 @@ read_key() {
return 0
fi
case "$key" in
$'\n'|$'\r') echo "ENTER" ;;
$'\x7f'|$'\x08') echo "DELETE" ;;
$'\x1b') echo "QUIT" ;; # ESC cancels filter
$'\n' | $'\r') echo "ENTER" ;;
$'\x7f' | $'\x08') echo "DELETE" ;;
$'\x1b') echo "QUIT" ;; # ESC cancels filter
*)
case "$key" in
[[:print:]]) echo "CHAR:$key" ;;