Skip to content

Commit f7cbe5d

Browse files
committed
Fix sixel not detected if "4" is first or last in list
Closes #55
1 parent 698f5a0 commit f7cbe5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ autodetect() {
8383
stty -echo # Hush-a Mandara Ni Pari
8484

8585
# IS TERMINAL SIXEL CAPABLE? # Send Device Attributes
86-
IFS=";" read -a REPLY -s -t 1 -d "c" -p $'\e[c' >&2
86+
IFS=";?c" read -a REPLY -s -t 1 -d "c" -p $'\e[c' >&2
8787
for code in "${REPLY[@]}"; do
8888
if [[ $code == "4" ]]; then
8989
hassixel=yup

0 commit comments

Comments
 (0)