more about terminals

This commit is contained in:
2026-02-13 00:15:21 +01:00
parent be6fb8a3f8
commit dbc3736b34
5 changed files with 39 additions and 22 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ FENCE_CODE=$(printf "\033[c")
# Set terminal to raw mode with timeout
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%s" "$ITERM2_QUERY_CODE" "$KGP_QUERY_CODE" "$FENCE_CODE" > /dev/tty