From 7fe3e928dd6cae776568aa9818755bc9ce256058 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 12 Oct 2026 12:22:42 +0000 Subject: [PATCH] Add image_support to replace sixel_support variable. --- format.c | 11 +++++++---- tmux.1 | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/format.c b/format.c index 596367edc..361ae20bf 100644 --- a/format.c +++ b/format.c @@ -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 @@ -3056,9 +3056,9 @@ format_cb_version(__unused struct format_tree *ft) return (xstrdup(getversion())); } -/* Callback for sixel_support. */ +/* Callback for image_support. */ static void * -format_cb_sixel_support(__unused struct format_tree *ft) +format_cb_image_support(__unused struct format_tree *ft) { return (xstrdup("0")); } @@ -3735,6 +3735,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 }, @@ -4072,7 +4075,7 @@ static const struct format_table_entry format_table[] = { format_cb_session_windows }, { "sixel_support", FORMAT_TABLE_STRING, - format_cb_sixel_support + format_cb_image_support }, { "socket_path", FORMAT_TABLE_STRING, format_cb_socket_path diff --git a/tmux.1 b/tmux.1 index ac47986a5..a250197af 100644 --- a/tmux.1 +++ b/tmux.1 @@ -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 .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" 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 .Os .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 "host" Ta "#H" Ta "Hostname of local host" .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 "key_string" Ta "" Ta "String representation of the key binding" .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_windows" Ta "" Ta "Number of windows in session" .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 "synchronized_output_flag" Ta "" Ta "1 if pane has synchronized output enabled" .It Li "uid" Ta "" Ta "Server UID"