Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lsix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down