FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make sixel images grid resident by mgrant0 · Pull Request #5463 · tmux/tmux · GitHub

/ tmux Public
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c4bdd8e
Make sixel images grid resident
mgrant0 Aug 3, 2026
08f0c04
Correct SIXEL HLS colour conversion
mgrant0 Aug 3, 2026
832d2be
Preserve SIXEL pixel dimensions
mgrant0 Aug 3, 2026
aa2dd64
Improve SIXEL colour quantization
mgrant0 Aug 3, 2026
c336f49
Correct image copyrights
mgrant0 Aug 3, 2026
6820ece
Rename image damage functions to redraw
mgrant0 Aug 3, 2026
00ffe74
Removed unconditional Floyd–Steinberg dithering from image-sixel.c:10…
mgrant0 Aug 5, 2026
49be265
Fix kitty image resize issue when the kitty image resized smaller tha…
mgrant0 Aug 5, 2026
507ecd3
Revert "Removed unconditional Floyd–Steinberg dithering from image-si…
mgrant0 Aug 5, 2026
718e281
Fix SIXEL median-cut palette generation
mgrant0 Aug 5, 2026
9c7c777
Keep SIXEL palettes across redraw spans
mgrant0 Aug 4, 2026
d83ffb2
Make image types opaque
mgrant0 Aug 6, 2026
02518f0
Use one image support switch
mgrant0 Aug 6, 2026
1c9fdd1
Simplify image support terminology
mgrant0 Aug 6, 2026
ca4e4c0
Clear text beneath graphical images
mgrant0 Aug 6, 2026
6eded1b
Use compact image references in grid cells
mgrant0 Aug 6, 2026
3ee659c
Revert "Clear text beneath graphical images"
mgrant0 Aug 7, 2026
867c5d3
Dither alpha in SIXEL output
mgrant0 Aug 7, 2026
88bd412
Fix underlay bookkeeping bug.
mgrant0 Aug 7, 2026
3e3567b
Clear text beneath SIXEL image placements.
mgrant0 Aug 7, 2026
236d286
Revert "Clear text beneath SIXEL image placements."
mgrant0 Aug 7, 2026
81af9c4
Add comments to image functions
mgrant0 Aug 7, 2026
9fce235
Add comments to image functions
mgrant0 Aug 7, 2026
d5ce313
Comment sixel_from_image().
mgrant0 Aug 7, 2026
509ad56
Do not enable sync for SIXEL
mgrant0 Aug 8, 2026
cce975e
Move RB_GENERATE_STATIC to top of file.
mgrant0 Aug 8, 2026
36900e1
Expose image backend flags
mgrant0 Aug 8, 2026
c754b73
Move image cell drawing into image.c
mgrant0 Aug 8, 2026
07455f9
Avoid overflow in image cell size calculation
mgrant0 Aug 8, 2026
f021600
Shorten image and SIXEL names
mgrant0 Aug 8, 2026
958946e
More cleanup of "histogram" name.
mgrant0 Aug 8, 2026
f1d7f77
The implementation now distinguishes a newly placed image cell from o…
mgrant0 Aug 8, 2026
7bd1a85
Redraw SIXEL images before or after text depending on which was place…
mgrant0 Aug 9, 2026
b30f9b2
Change some names of things for clarity.
mgrant0 Aug 9, 2026
fce3ac1
sixel: scale source raster bounds
mgrant0 Aug 10, 2026
7bd1ba9
sixel: preserve fractional raster extents
mgrant0 Aug 10, 2026
073dc4c
image: simplify geometry cleanup
mgrant0 Aug 17, 2026
7df1259
build: rename image support option
mgrant0 Aug 18, 2026
9c70c33
sixel: preserve image aspect across client geometries
mgrant0 Aug 18, 2026
f53976a
image: move basic fallback into image.c
mgrant0 Aug 18, 2026
File filter

Filter by extension

Filter by extension .ac  (1) .am  (1) .c  (15) .h  (1) .sh  (1) All 5 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Makefile.am
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ if HAVE_UTF8PROC
nodist_tmux_SOURCES += compat/utf8proc.c
endif

# Enable sixel support.
if ENABLE_SIXEL
# Enable image support.
if ENABLE_IMAGES
dist_tmux_SOURCES += image.c image-sixel.c
endif

Expand Down
23 changes: 16 additions & 7 deletions configure.ac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -530,15 +530,24 @@ if test "x$enable_cgroups" = xyes; then
fi
fi

# Enable sixel support.
# Enable image support.
AC_ARG_ENABLE(
images,
AS_HELP_STRING(--enable-images, enable SIXEL and ASCII images)
)

# Keep the old option as an alias for one compatibility cycle.
AC_ARG_ENABLE(
sixel,
AS_HELP_STRING(--enable-sixel, enable sixel images)
AS_HELP_STRING(--enable-sixel, deprecated alias for --enable-images)
)
if test "x$enable_sixel" = xyes; then
AC_DEFINE(ENABLE_SIXEL)
enable_images=yes
fi
AM_CONDITIONAL(ENABLE_SIXEL, [test "x$enable_sixel" = xyes])
if test "x$enable_images" = xyes; then
AC_DEFINE(ENABLE_IMAGES)
fi
AM_CONDITIONAL(ENABLE_IMAGES, [test "x$enable_images" = xyes])

# Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
AC_MSG_CHECKING(for b64_ntop)
Expand Down Expand Up @@ -1137,10 +1146,10 @@ if test "x$enable_asan" = xyes; then
else
AC_MSG_NOTICE([ASAN: off])
fi
if test "x$enable_sixel" = xyes; then
AC_MSG_NOTICE([SIXEL: on])
if test "x$enable_images" = xyes; then
AC_MSG_NOTICE([images: on])
else
AC_MSG_NOTICE([SIXEL: off])
AC_MSG_NOTICE([images: off])
fi
if test "x$enable_debug" = xyes; then
AC_MSG_NOTICE([debug: on])
Expand Down
14 changes: 14 additions & 0 deletions format.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2964,6 +2964,17 @@ format_cb_sixel_support(__unused struct format_tree *ft)
#endif
}

/* Callback for image_support. */
static void *
format_cb_image_support(__unused struct format_tree *ft)
{
#ifdef ENABLE_IMAGES
return (xstrdup("1"));
#else
return (xstrdup("0"));
#endif
}

/* Callback for active_window_index. */
static void *
format_cb_active_window_index(struct format_tree *ft)
Expand Down Expand Up @@ -3627,6 +3638,9 @@ static const struct format_table_entry format_table[] = {
{ "host_short", FORMAT_TABLE_STRING,
format_cb_host_short
},
{ "image_support", FORMAT_TABLE_STRING,
format_cb_image_support
},
{ "insert_flag", FORMAT_TABLE_STRING,
format_cb_insert_flag
},
Expand Down
Loading

Back | FazBrowse Home | New Git URL