more about terminals

This commit is contained in:
Uyanide committed 2026-02-13 00:15:21 +01:00
1 parent be6fb8a3f8
commit dbc3736b34
5 files changed
+39 -22

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ FENCE_CODE=$(printf "\033[c")
# Set terminal to raw mode
stty_orig=$(stty -g)
trap 'stty "$stty_orig"' EXIT
trap 'stty "$stty_orig"' EXIT INT TERM HUP
stty -echo -icanon min 1 time 0
printf "%s%s" "$QUERY_CODE" "$FENCE_CODE" > /dev/tty