mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
sixel: remove images on escape code 'l' - Reset Mode (RM) ref. #102
This commit is contained in:
parent
f097dbd079
commit
41e6f9dce6
6
st.c
6
st.c
@ -2341,6 +2341,10 @@ csihandle(void)
|
|||||||
break;
|
break;
|
||||||
case 'l': /* RM -- Reset Mode */
|
case 'l': /* RM -- Reset Mode */
|
||||||
tsetmode(csiescseq.priv, 0, csiescseq.arg, csiescseq.narg);
|
tsetmode(csiescseq.priv, 0, csiescseq.arg, csiescseq.narg);
|
||||||
|
#if SIXEL_PATCH
|
||||||
|
for (im = term.images; im; im = im->next)
|
||||||
|
im->should_delete = 1;
|
||||||
|
#endif // SIXEL_PATCH
|
||||||
break;
|
break;
|
||||||
case 'M': /* DL -- Delete <n> lines */
|
case 'M': /* DL -- Delete <n> lines */
|
||||||
DEFAULT(csiescseq.arg[0], 1);
|
DEFAULT(csiescseq.arg[0], 1);
|
||||||
@ -2558,6 +2562,8 @@ strhandle(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
case 8: /* Clear Hyperlinks */
|
||||||
|
return;
|
||||||
case 10:
|
case 10:
|
||||||
if (narg < 2)
|
if (narg < 2)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user