Skip to content

Commit

Permalink
Presume sixel scrolling is enabled
Browse files Browse the repository at this point in the history
After purchasing a genuine DEC VT340 terminal, hackerb9 has
learned that the DEC VT340 graphics programmer's manual was
mistaken and the sense of DECSDM should be inverted. Nearly
every terminal emulator which built upon that reference over
the last thirty years is incorrect. Some are correcting the
error now, some never were wrong, but we are at a time when
it is not safe to presume what setting DECSDM means.

For now, lsix will simply presume that sixel scrolling is
enabled and hope that no program has been run before it that
disables it.

See #41 for details.

Thanks go to @j4james for pointing out the mistake and for
testing multiple terminal emulators to show that none of
them currently default to having sixel scrolling disabled.
  • Loading branch information
hackerb9 committed Aug 20, 2021
1 parent 4428684 commit 49f9eda
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lsix
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,8 @@ autodetect() {
exit 1
fi

# ENABLE SIXEL SCROLLING so image will appear right after cursor.
if [[ $TERM != "mlterm" ]]; then
echo -ne $'\e[?80h'
else
# Except... mlterm (as of 3.5.0) has a bug that reverses the sense
echo -ne $'\e[?80l'
fi
# SIXEL SCROLLING (~DECSDM) is now presumed to be enabled.
# See https://github.com/hackerb9/lsix/issues/41 for details.

# TERMINAL COLOR AUTODETECTION.
# Find out how many color registers the terminal has
Expand Down

0 comments on commit 49f9eda

Please sign in to comment.