mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add a sixel_support format variable which is 1 if SIXEL is supported
(always 0 on OpenBSD), requested by Misaki Masa in GitHub issue 4177
This commit is contained in:
10
format.c
10
format.c
@ -2320,6 +2320,13 @@ format_cb_version(__unused struct format_tree *ft)
|
||||
return (xstrdup(getversion()));
|
||||
}
|
||||
|
||||
/* Callback for sixel_support. */
|
||||
static void *
|
||||
format_cb_sixel_support(__unused struct format_tree *ft)
|
||||
{
|
||||
return (xstrdup("0"));
|
||||
}
|
||||
|
||||
/* Callback for active_window_index. */
|
||||
static void *
|
||||
format_cb_active_window_index(struct format_tree *ft)
|
||||
@ -3147,6 +3154,9 @@ static const struct format_table_entry format_table[] = {
|
||||
{ "session_windows", FORMAT_TABLE_STRING,
|
||||
format_cb_session_windows
|
||||
},
|
||||
{ "sixel_support", FORMAT_TABLE_STRING,
|
||||
format_cb_sixel_support
|
||||
},
|
||||
{ "socket_path", FORMAT_TABLE_STRING,
|
||||
format_cb_socket_path
|
||||
},
|
||||
|
Reference in New Issue
Block a user