config: add tweak option to allow disabling sixels

Closes #950
This commit is contained in:
jvoisin 2022-02-27 16:29:35 +01:00 committed by Daniel Eklöf
parent 0d1e6960af
commit 58a1ffe724
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 26 additions and 2 deletions

3
dcs.c
View file

@ -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);