Add image_support to replace sixel_support variable.

This commit is contained in:
nicm
2026-10-12 12:22:42 +00:00
committed by tmux update bot
parent 4caff240c8
commit 7fe3e928dd
2 changed files with 10 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: format.c,v 1.426 2026/10/12 10:53:59 nicm Exp $ */ /* $OpenBSD: format.c,v 1.427 2026/10/12 12:22:42 nicm Exp $ */
/* /*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -3056,9 +3056,9 @@ format_cb_version(__unused struct format_tree *ft)
return (xstrdup(getversion())); return (xstrdup(getversion()));
} }
/* Callback for sixel_support. */ /* Callback for image_support. */
static void * static void *
format_cb_sixel_support(__unused struct format_tree *ft) format_cb_image_support(__unused struct format_tree *ft)
{ {
return (xstrdup("0")); return (xstrdup("0"));
} }
@@ -3735,6 +3735,9 @@ static const struct format_table_entry format_table[] = {
{ "host_short", FORMAT_TABLE_STRING, { "host_short", FORMAT_TABLE_STRING,
format_cb_host_short format_cb_host_short
}, },
{ "image_support", FORMAT_TABLE_STRING,
format_cb_image_support
},
{ "insert_flag", FORMAT_TABLE_STRING, { "insert_flag", FORMAT_TABLE_STRING,
format_cb_insert_flag format_cb_insert_flag
}, },
@@ -4072,7 +4075,7 @@ static const struct format_table_entry format_table[] = {
format_cb_session_windows format_cb_session_windows
}, },
{ "sixel_support", FORMAT_TABLE_STRING, { "sixel_support", FORMAT_TABLE_STRING,
format_cb_sixel_support format_cb_image_support
}, },
{ "socket_path", FORMAT_TABLE_STRING, { "socket_path", FORMAT_TABLE_STRING,
format_cb_socket_path format_cb_socket_path

6
tmux.1
View File

@@ -1,4 +1,4 @@
.\" $OpenBSD: tmux.1,v 1.1182 2026/10/09 13:12:14 nicm Exp $ .\" $OpenBSD: tmux.1,v 1.1183 2026/10/12 12:22:42 nicm Exp $
.\" .\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> .\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\" .\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.Dd $Mdocdate: October 9 2026 $ .Dd $Mdocdate: October 12 2026 $
.Dt TMUX 1 .Dt TMUX 1
.Os .Os
.Sh NAME .Sh NAME
@@ -7457,6 +7457,7 @@ The following variables are available, where appropriate:
.It Li "hook_window_name" Ta "" Ta "Name of window where hook was run, if any" .It Li "hook_window_name" Ta "" Ta "Name of window where hook was run, if any"
.It Li "host" Ta "#H" Ta "Hostname of local host" .It Li "host" Ta "#H" Ta "Hostname of local host"
.It Li "host_short" Ta "#h" Ta "Hostname of local host (no domain name)" .It Li "host_short" Ta "#h" Ta "Hostname of local host (no domain name)"
.It Li "image_support" Ta "" Ta "1 if server has support for images"
.It Li "insert_flag" Ta "" Ta "Pane insert flag" .It Li "insert_flag" Ta "" Ta "Pane insert flag"
.It Li "key_string" Ta "" Ta "String representation of the key binding" .It Li "key_string" Ta "" Ta "String representation of the key binding"
.It Li "key_repeat" Ta "" Ta "1 if key binding is repeatable" .It Li "key_repeat" Ta "" Ta "1 if key binding is repeatable"
@@ -7611,7 +7612,6 @@ The following variables are available, where appropriate:
.It Li "session_stack" Ta "" Ta "Window indexes in most recent order" .It Li "session_stack" Ta "" Ta "Window indexes in most recent order"
.It Li "session_windows" Ta "" Ta "Number of windows in session" .It Li "session_windows" Ta "" Ta "Number of windows in session"
.It Li "socket_path" Ta "" Ta "Server socket path" .It Li "socket_path" Ta "" Ta "Server socket path"
.It Li "sixel_support" Ta "" Ta "1 if server has support for SIXEL"
.It Li "start_time" Ta "" Ta "Server start time" .It Li "start_time" Ta "" Ta "Server start time"
.It Li "synchronized_output_flag" Ta "" Ta "1 if pane has synchronized output enabled" .It Li "synchronized_output_flag" Ta "" Ta "1 if pane has synchronized output enabled"
.It Li "uid" Ta "" Ta "Server UID" .It Li "uid" Ta "" Ta "Server UID"