Commit Graph

11977 Commits

Author SHA1 Message Date
Michael Grant
5a6fefb427 image: simplify geometry cleanup 2026-08-17 08:48:08 +01:00
Michael Grant
f2ca8ade2a sixel: scale source raster bounds 2026-08-10 12:14:02 +01:00
Michael Grant
beea19dc97 Update image size accessor call sites 2026-08-09 22:15:37 +01:00
Michael Grant
3f6e4efe1b Change some names of things for clarity. 2026-08-09 22:15:10 +01:00
Michael Grant
3c5a24c858 The implementation now distinguishes a newly placed image cell from one later overwritten by text. On a SIXEL terminal, damaged cells are omitted from image output; on Kitty they remain ordinary positional placements. 2026-08-09 09:08:50 +01:00
Michael Grant
0aad77e779 Update fallback image names 2026-08-08 10:58:58 +01:00
Michael Grant
6dfbaf2731 More cleanup of "histogram" name. 2026-08-08 10:51:58 +01:00
Michael Grant
f1fa6ab545 Shorten image and SIXEL names 2026-08-08 10:51:58 +01:00
Michael Grant
a5a638314a Avoid overflow in image cell size calculation 2026-08-08 10:34:00 +01:00
Michael Grant
2ec3ad0c09 Move image cell drawing into image.c 2026-08-08 10:28:34 +01:00
Michael Grant
997288a5d9 Expose image backend flags 2026-08-08 10:22:05 +01:00
Michael Grant
3cb9bd438d Do not enable sync for SIXEL 2026-08-08 09:14:12 +01:00
Michael Grant
5b631b4f2d Comment sixel_from_image(). 2026-08-07 22:42:22 +01:00
Michael Grant
d8d5093790 Add comments to image functions 2026-08-07 22:23:11 +01:00
Michael Grant
59ab8a5160 Add comments to image functions 2026-08-07 22:19:15 +01:00
Michael Grant
bbbac41c70 Fix underlay bookkeeping bug. 2026-08-07 11:37:49 +01:00
Michael Grant
0007c52d57 Dither alpha in SIXEL output 2026-08-07 11:23:17 +01:00
Michael Grant
3df288d4dc Revert "Clear text beneath graphical images"
This reverts commit fb589fd9f9.
2026-08-07 09:27:39 +01:00
Michael Grant
35b856652d Use compact image references in grid cells 2026-08-06 22:34:49 +01:00
Michael Grant
09250ea86f Clear text beneath graphical images 2026-08-06 22:19:53 +01:00
Michael Grant
2dd4618bbb Simplify image support terminology 2026-08-06 16:17:42 +01:00
Michael Grant
f76e9d29ce Use one image support switch 2026-08-06 14:28:12 +01:00
Michael Grant
7c6f5d838f Make image types opaque 2026-08-06 12:38:11 +01:00
Michael Grant
d9ff36408c Keep SIXEL palettes across redraw spans 2026-08-06 11:31:51 +01:00
Michael Grant
9cc09b2a9f Improve image fallback rendering 2026-08-06 10:21:16 +01:00
Michael Grant
718e281820 Fix SIXEL median-cut palette generation 2026-08-05 21:45:45 +01:00
Michael Grant
507ecd320a Revert "Removed unconditional Floyd–Steinberg dithering from image-sixel.c:1077. Kitty images now use the adaptive 256-colour median-cut palette with direct nearest-colour mapping."
This reverts commit 00ffe744b3.
2026-08-05 21:45:27 +01:00
Michael Grant
49be26557d Fix kitty image resize issue when the kitty image resized smaller than the image, the image was overflowing lines and banding. 2026-08-05 13:57:26 +01:00
Michael Grant
00ffe744b3 Removed unconditional Floyd–Steinberg dithering from image-sixel.c:1077. Kitty images now use the adaptive 256-colour median-cut palette with direct nearest-colour mapping. 2026-08-05 13:55:51 +01:00
Michael Grant
6820eceee5 Rename image damage functions to redraw 2026-08-03 13:14:04 +01:00
Michael Grant
c336f49585 Correct image copyrights 2026-08-03 12:56:12 +01:00
Michael Grant
aa2dd64873 Improve SIXEL colour quantization
Build an adaptive 256-colour palette with median cut instead of using a fixed colour cube. Apply Floyd-Steinberg error diffusion while mapping pixels to reduce banding and preserve image detail.
2026-08-03 12:21:54 +01:00
Michael Grant
832d2beb2d Preserve SIXEL pixel dimensions
Retain the padded canonical pixel canvas separately from the image content. Scale only the populated portion of partial edge cells so an image keeps its exact raster size on the originating terminal while retaining its cell footprint.
2026-08-03 12:14:49 +01:00
Michael Grant
08f0c0485b Correct SIXEL HLS colour conversion
Use the DEC hue origin and channel order, and round percentage and HLS conversions to the nearest byte value.
2026-08-03 12:08:28 +01:00
Michael Grant
c4bdd8eca1 Make sixel images grid resident
Replace screen-coordinate image placements with immutable pixel images referenced by ordinary grid cells. Draw visible marker runs through the redraw scene using per-client sixel or text backends so images follow history, copy mode, clipping and overwrites.
2026-08-03 11:56:25 +01:00
tmux update bot
31dccb6bc9 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Fix unzoomed width when scrollbars are hidden.
2026-07-30 04:22:52 +00:00
nicm
8dfb7d0294 Fix unzoomed width when scrollbars are hidden. 2026-07-30 04:22:51 +00:00
Nicholas Marriott
265fb7b4ea Test for vi keys and padding. 2026-07-29 21:18:38 +01:00
tmux update bot
fa38b36f1f Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Correctly skip padding at end of line, GitHub issue 5411.
2026-07-29 20:04:07 +00:00
nicm
44b8a40b8c Correctly skip padding at end of line, GitHub issue 5411. 2026-07-29 20:04:06 +00:00
tmux update bot
5cd5df1d33 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Add a flag to turn off scrollbars for display-panes; GitHub issue 5440 from David Marte.
2026-07-29 17:41:02 +00:00
nicm
415d265728 Add a flag to turn off scrollbars for display-panes; GitHub issue 5440
from David Marte.
2026-07-29 17:41:01 +00:00
Nicholas Marriott
d6c37ce314 Note SIXEL at end of configure as well. 2026-07-29 11:11:05 +01:00
tmux update bot
c6d02d54d1 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Fix #1 -> #{1} in tmux1, from Rasmus Thystrup Karstensen.
2026-07-29 10:10:07 +00:00
nicm
6f41dac898 Fix #1 -> #{1} in tmux1, from Rasmus Thystrup Karstensen. 2026-07-29 10:10:06 +00:00
tmux update bot
5534f1ac32 Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Store status position in new mouse event for menus so the position is correct later.
2026-07-28 15:09:08 +00:00
nicm
9f2c535909 Store status position in new mouse event for menus so the position is
correct later.
2026-07-28 15:09:07 +00:00
Nicholas Marriott
7cc0c11cde Add test for mouse menu position. 2026-07-28 14:18:18 +01:00
tmux update bot
31fe1ded5d Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master:
  Show hook count and time in customize mode.
2026-07-28 12:15:38 +00:00
nicm
6a13d61b48 Show hook count and time in customize mode. 2026-07-28 12:15:37 +00:00