tmuxtmuxCLI manual

Choose documentation 1

latest

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux display-message

command tmux 3.7c

Display a message.

Syntax

tmux display-message [-aCIlNpv] [-c target-client] [-d delay] [-F format] [-t target-pane] [message]

Alias: display.

Behavior

Display a message. If -p is given, the output is printed to stdout, otherwise it is displayed in the target-client status line for up to delay milliseconds. If delay is not given, the display-time option is used; a delay of zero waits for a key press. -N ignores key presses and closes only after the delay expires. If -C is given, the pane will continue to be updated while the message is displayed. If -l is given, message is printed unchanged. Otherwise, the format of message is described in the FORMATS section; information is taken from target-pane if -t is given, otherwise the active pane.

-v prints verbose logging as the format is parsed and -a lists the format variables and their values.

-I forwards any input read from stdin to the empty pane given by target-pane.

Guides

C implementation

Internal declarations in tmux 3.7c:

Use from a library

These methods send display-message. Each describes its own defaults, errors and execution model.

Library methods that send tmux display-message, by scope
Language Methods
Python Pane.display_message Server.display_message Window.display_message
Ruby Async::Server#display LibTmux::Server#display WindowLink#display
PowerShell Get-TmuxServer
Julia format_hints
Elixir Capture.fetch/2 Control.reconnect!/2 the connection is closed Control.reconnect/2 the connection is closed Control.start_link/1 Control.submit!/3 the request reads a field Control.submit/3 the request reads a field Server.snapshot!/2 Server.snapshot/2
Haskell capture fetch waitForPaneState
Common Lisp client.display-message
TypeScript main the server is already running Pane.displayMessage
Rust Pane.display Pane.format Server.format Session.display Session.format Window.display Window.format
Go Pane.DisplayMessage Server.DisplayMessage Window.DisplayMessage
Java Main.main Options.all Options.effective Pane.expand Server.expand Server.isAlive Server.killServer Server.requireAlive Session.expand Window.expand
Clojure kill-server!
Kotlin Options.all Options.effective Pane.expand Server.expand Server.isAlive Server.killServer Server.requireAlive Session.expand Window.expand
Scala Batch.run the batch is not empty cats.Pane.expand cats.Server.expand cats.Server.isAlive cats.Server.killServer cats.Server.requireAlive cats.Session.expand cats.Window.expand Options.all Options.effective scaladsl.Pane.expand scaladsl.Server.expand scaladsl.Server.isAlive scaladsl.Server.killServer scaladsl.Server.requireAlive scaladsl.Session.expand scaladsl.Window.expand
C# Pane.BreakAsync break-pane prints no window ID Pane.DisplayMessageAsync Server.DisplayMessageAsync Server.FindPaneAsync Server.FindSessionAsync Server.FindWindowAsync Server.GetPaneAsync Server.GetSessionAsync Server.GetWindowAsync Server.InspectAsync Window.DisplayMessageAsync
C++ Client::session Pane::break_out the window has one pane Pane::show_message Server::expand Server::show_message Server::validate_layouts layouts that depend on the tmux version Server::wait_for_text Session::show_message Window::show_message
Swift Server.format(_:) Server.format(_:for:) Server.incarnation()
Perl Async::Server::capture_pane daemon identity or target preflight Async::Server::clients daemon identity or target preflight Async::Server::detach_client daemon identity or target preflight Async::Server::kill_pane daemon identity or target preflight Async::Server::kill_session daemon identity or target preflight Async::Server::kill_window daemon identity or target preflight Async::Server::link_window daemon identity or target preflight Async::Server::listings daemon identity or target preflight Async::Server::move_window daemon identity or target preflight Async::Server::new_session daemon identity or target preflight Async::Server::new_window daemon identity or target preflight Async::Server::query_panes daemon identity or target preflight Async::Server::rename_session daemon identity or target preflight Async::Server::rename_window daemon identity or target preflight Async::Server::resize_pane daemon identity or target preflight Async::Server::select_layout daemon identity or target preflight Async::Server::select_pane daemon identity or target preflight Async::Server::select_window daemon identity or target preflight Async::Server::send_keys daemon identity or target preflight Async::Server::send_text daemon identity or target preflight Async::Server::set_title daemon identity or target preflight Async::Server::snapshot daemon identity or target preflight Async::Server::split_pane daemon identity or target preflight Async::Server::unlink_window daemon identity or target preflight LibTmux::Server::capture_pane daemon identity or target preflight LibTmux::Server::clients daemon identity or target preflight LibTmux::Server::detach_client daemon identity or target preflight LibTmux::Server::kill_pane daemon identity or target preflight LibTmux::Server::kill_session daemon identity or target preflight LibTmux::Server::kill_window daemon identity or target preflight LibTmux::Server::link_window daemon identity or target preflight LibTmux::Server::listings daemon identity or target preflight LibTmux::Server::move_window daemon identity or target preflight LibTmux::Server::new_session daemon identity or target preflight LibTmux::Server::new_window daemon identity or target preflight LibTmux::Server::query_panes daemon identity or target preflight LibTmux::Server::rename_session daemon identity or target preflight LibTmux::Server::rename_window daemon identity or target preflight LibTmux::Server::resize_pane daemon identity or target preflight LibTmux::Server::select_layout daemon identity or target preflight LibTmux::Server::select_pane daemon identity or target preflight LibTmux::Server::select_window daemon identity or target preflight LibTmux::Server::send_keys daemon identity or target preflight LibTmux::Server::send_text daemon identity or target preflight LibTmux::Server::set_title daemon identity or target preflight LibTmux::Server::snapshot daemon identity or target preflight LibTmux::Server::split_pane daemon identity or target preflight LibTmux::Server::unlink_window daemon identity or target preflight
Raku ClientRef.display-format ClientRef.display-message ClientTarget.display-format ClientTarget.display-message Connection.observe Connection.observe-async

No method in Lua, Erlang, F#, or OCaml sends this command itself.

tmux sources and license

Syntax comes from tmux 3.7c list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.7c manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference