Skip to content

Commit 49f9eda

Browse files
committed
Presume sixel scrolling is enabled
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.
1 parent 4428684 commit 49f9eda

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lsix

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,8 @@ autodetect() {
111111
exit 1
112112
fi
113113

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

122117
# TERMINAL COLOR AUTODETECTION.
123118
# Find out how many color registers the terminal has

0 commit comments

Comments
 (0)