st/patch
Stein Gunnar Bakkeby 677c2da0be
Reworking sixel implementation based on veltza's implementation (#117)
* sixel: remove black bars from sixel images

When the images don't fully cover the text cells, black bars are added
to them. This fix removes those bars, but if you need the old behavior,
you can restore it by setting 'sixelremovebars' to zero in config.h

* sixel: fix a potential memory leak

* sixel: improve behavior with text reflow

* sixel: prevent animated gifs from choking the terminal

Animated gifs constantly spawn new images that eventually choke the
terminal because the old animation frames are kept in the image buffer.
This fix removes overlapping images from the image buffer and prevents
them from piling up.

* sixel: add zooming and clipping

* sixel: copying bulk of changes

* sixel: move sixel_parser_parse() and add missing sequences and blocks (#113)

- Move sixel_parser_parse() from tputc() to twrite()
- Add missing 8452, DECSDM, XTSMGRAPHICS and XTWINOPS sequences
- Add more conditional blocks for the scrollback and sync patches
- Remove unused reflow_y from ImageList. It is only used for the
  scrollback-reflow patch in st-sx.

* sixel: update vtiden to VT200 family

* sixel: fix scrolling issues inside tmux (#114)

tmux is using the scrolling region and sequence to clear the screen
below the shell prompt. This peculiar behavior caused the tscrollup()
function to be called, which always scrolled the images regardless of
whether they were inside the region or not. So the images moved out of
place whenever the bottom of the screen was cleared. This fix checks
that the images are inside the region before scrolling them.

* sixel: prevent images from being deleted when resizing (#115)

This fixes resizing issues outside of tmux not inside.

* Rewriting tresize logic based on veltza's proposed implementation in PR #115

* tresize: correction for tscrollup call when scrollback patch is used

---------

Co-authored-by: veltza <106755522+veltza@users.noreply.github.com>
2024-03-07 09:22:44 +01:00
..
alpha.c alpha: remove debug print statements from changealpha 2022-10-01 08:37:17 +02:00
alpha.h Add function for changing alpha (#47) 2022-09-24 11:04:38 +02:00
background_image_x.c Adding background image reload patch ref. pull request #62 2022-04-11 16:04:58 +02:00
background_image_x.h Adding background image reload patch ref. pull request #62 2022-04-11 16:04:58 +02:00
boxdraw.c Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
boxdraw.h Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
copyurl.c copyurl: upgrading to support non-ascii URLs ref. #21 2021-05-09 08:08:51 +02:00
copyurl.h Adding copyurl and disable-fonts patch 2019-09-16 10:40:16 +02:00
externalpipe.c externalpipe: sigchld changes interfere with right-click-to-plumb and opencopied patches, proposed fix ref. #27 2021-05-15 11:44:09 +02:00
externalpipe.h [st][PATCH] externalpipe and externalpipein 2020-04-20 13:06:39 +02:00
fixkeyboardinput.c dedup XK_Z in fixkeyboardinput.c (#87) 2022-10-15 15:40:39 +02:00
font2.c font2: adding use XftFontMatch patch compatibility 2022-08-29 09:50:47 +02:00
font2.h Adding font2 patch as per request #3 2020-03-21 16:41:43 +01:00
fullscreen_x.c Adding fullscreen patch ref. #88 2022-10-24 11:27:51 +02:00
fullscreen_x.h Adding fullscreen patch ref. #88 2022-10-24 11:27:51 +02:00
invert.c Adding invert patch 2020-03-29 15:38:16 +02:00
invert.h Adding invert patch 2020-03-29 15:38:16 +02:00
iso14755.c Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
iso14755.h Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
keyboardselect_st.c Fixed a glitch when using using the keyboardselect and scrollback patches. (#48) 2022-10-17 13:39:34 +02:00
keyboardselect_st.h Adding note about flexipatch-finalizer 2019-10-16 12:05:53 +02:00
keyboardselect_x.c Adding note about flexipatch-finalizer 2019-10-16 12:05:53 +02:00
keyboardselect_x.h Adding note about flexipatch-finalizer 2019-10-16 12:05:53 +02:00
netwmicon.h Adding netwmicon patch ref. #21 2021-05-08 14:50:06 +02:00
newterm.c newterm: dwm swallow compatibility 2021-07-12 09:25:52 +02:00
newterm.h Adding fixime, newterm and opencopied patches 2019-09-16 12:40:07 +02:00
normalMode.c Adding vim browse patch ref. #21 2021-05-09 17:48:28 +02:00
normalMode.h Adding vim browse patch ref. #21 2021-05-09 17:48:28 +02:00
opencopied.c Adding fixime, newterm and opencopied patches 2019-09-16 12:40:07 +02:00
opencopied.h Adding fixime, newterm and opencopied patches 2019-09-16 12:40:07 +02:00
openurlonclick.c openurlonclick: using posix_spawnp instead of system ref. comments in #76 2022-08-11 15:04:44 +02:00
openurlonclick.h openurlonclick: using posix_spawnp instead of system ref. comments in #76 2022-08-11 15:04:44 +02:00
rightclicktoplumb_st.c Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
rightclicktoplumb_st.h Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
rightclicktoplumb_x.c Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
rightclicktoplumb_x.h Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00
scrollback.c Add scrollback support to the openurlonclick patch 2022-08-10 21:32:44 +03:00
scrollback.h Adding universcroll patch ref. #21 2021-05-08 17:49:04 +02:00
st_embedder_x.c Adding st embedder patch 2020-01-07 14:05:53 +01:00
st_embedder_x.h Adding st embedder patch 2020-01-07 14:05:53 +01:00
st_include.c Reworking sixel implementation based on veltza's implementation (#117) 2024-03-07 09:22:44 +01:00
st_include.h Reworking sixel implementation based on veltza's implementation (#117) 2024-03-07 09:22:44 +01:00
sync.c Adding sync patch ref. #21 2021-05-09 09:25:22 +02:00
sync.h Adding sync patch ref. #21 2021-05-09 09:25:22 +02:00
utils.h Adding vim browse patch ref. #21 2021-05-09 17:48:28 +02:00
x_include.c Reworking sixel implementation based on veltza's implementation (#117) 2024-03-07 09:22:44 +01:00
x_include.h Adding fullscreen patch ref. #88 2022-10-24 11:27:51 +02:00
xresources.c XRESOURCES_RELOAD_PATCH reload fonts + re-render (#84) 2022-09-24 10:40:33 +02:00
xresources.h Adding background image reload patch ref. pull request #62 2022-04-11 16:04:58 +02:00