aboutsummaryrefslogtreecommitdiff
path: root/dcs.c
diff options
context:
space:
mode:
authorjvoisin <julien.voisin@dustri.org>2022-02-27 15:29:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-06 17:25:43 +0000
commit58a1ffe72483ffb52d617d2985851781e82a45b8 (patch)
tree5514c7ef7eea532a1f6d37e5a0f3af3502991308 /dcs.c
parentosc: avoid unnecessary calls to strlen(3) (diff)
config: add tweak option to allow disabling sixels
Closes #950
Diffstat (limited to 'dcs.c')
-rw-r--r--dcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dcs.c b/dcs.c
index 06ad60a9..fb4a14b6 100644
--- a/dcs.c
+++ b/dcs.c
@@ -420,6 +420,9 @@ dcs_hook(struct terminal *term, uint8_t final)
case 0:
switch (final) {
case 'q': {
+ if (!term->conf->tweak.sixel) {
+ break;
+ }
int p1 = vt_param_get(term, 0, 0);
int p2 = vt_param_get(term, 1,0);
int p3 = vt_param_get(term, 2, 0);