aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-14 17:17:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-14 17:17:44 +0000
commitfcd989734235c25e64f8fb38ffcfdf381e933873 (patch)
treebaba5d2bae95311e70501c092266ba9ff1ec8146 /terminal.h
parentMerge branch 'crash-on-runaway-url' (diff)
csi: invert the meaning of DECSDM
There has been some confusion whether enabling DECSDM (private mode 80) enables or disables sixel scrolling. Foot currently enables scrolling when DECSDM is set, and this patch changes this, such that setting DECSDM now *disables* scrolling. The confusion is apparently due to a documentation error in the VT340 manual, as described in https://github.com/dankamongmen/notcurses/issues/1782#issuecomment-863603641. And that makes sense, in a way: the SDM in DECSDM stands for Sixel Display Mode. I.e. it stands to reason that enabling that disables scrolling. Anyway, this lead to https://github.com/hackerb9/lsix/issues/41, where it was eventually proven (by testing on a real VT340), that foot, and a large number of other terminals (including XTerm) has it wrong: https://github.com/hackerb9/lsix/issues/41#issuecomment-873269599.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 309f7db6..12a637a0 100644
--- a/terminal.h
+++ b/terminal.h
@@ -378,7 +378,7 @@ struct terminal {
bool ime:1;
bool app_sync_updates:1;
- bool sixel_scrolling:1;
+ bool sixel_display_mode:1;
bool sixel_private_palette:1;
bool sixel_cursor_right_of_graphics:1;
} xtsave;