From 689f740f53503df9fcbc1c2d1d57f5b5775c4c6d Mon Sep 17 00:00:00 2001 From: SirCipherz Date: Mon, 9 Aug 2021 12:11:31 +0200 Subject: [PATCH 1/2] add darktile support --- lsix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lsix b/lsix index fe83fd1..b8c0f69 100755 --- a/lsix +++ b/lsix @@ -79,6 +79,7 @@ autodetect() { # IS TERMINAL SIXEL CAPABLE? # Send Device Attributes IFS=";" read -a REPLY -s -t 1 -d "c" -p $'\e[c' >&2 for code in "${REPLY[@]}"; do + echo $code >> code if [[ $code == "4" ]]; then hassixel=yup break @@ -87,6 +88,7 @@ autodetect() { # YAFT is vt102 compatible, cannot respond to vt220 escape sequence. if [[ "$TERM" == yaft* ]]; then hassixel=yeah; fi + if [[ "$(ps -o comm= -p "$(($(ps -o ppid= -p "$(($(ps -o sid= -p "$$")))")))")" == darktile ]]; then hassixel=yeah; fi if [[ -z "$hassixel" ]]; then cat <<-EOF >&2 From cda257e86ea99dc91e297999b4cf5fd3edf1ca68 Mon Sep 17 00:00:00 2001 From: SirCipherz Date: Tue, 10 Aug 2021 20:52:17 +0200 Subject: [PATCH 2/2] removing the creation of a debug file --- lsix | 1 - 1 file changed, 1 deletion(-) diff --git a/lsix b/lsix index b8c0f69..8b19a63 100755 --- a/lsix +++ b/lsix @@ -79,7 +79,6 @@ autodetect() { # IS TERMINAL SIXEL CAPABLE? # Send Device Attributes IFS=";" read -a REPLY -s -t 1 -d "c" -p $'\e[c' >&2 for code in "${REPLY[@]}"; do - echo $code >> code if [[ $code == "4" ]]; then hassixel=yup break