Pane.display_message
Display message to pane.
Source and package
- Qualified name
-
libtmux.Pane. display _message - Module
- libtmux
- Declared in
Pane- Package
- libtmux
- Source
- src/libtmux/pane.py
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Ruby Lua TypeScriptRustGo Java C#C++ Swift Kotlin Scala OCaml F# Clojure
-
Description#
Displays a message in target-client status line. The
get_text=Falsepath renders in the status line and is not programmatically verifiable; onlyget_text=Truereturns output.Notes
Stderr from tmux is reported via
warnings.warn, not raised. Callers that want to escalate to an exception can wrap the call inwarnings.catch_warningswithfilterwarnings("error").- Parameters
-
-
get_text(bool) # – Returns only text without displaying a message in target-client status line. -
format_string(str | None) # – Format string for output (-Fflag). added 0.56 -
all_formats(bool | None) # – List all format variables (-aflag). added 0.56 -
verbose(bool | None) # – Show format variable types (-vflag). added 0.56 -
no_expand(bool | None) # – Suppress format expansion; output is returned as a literal string (-lflag). Requires tmux 3.4+. added 0.56 -
target_client(str | None) # – Target client (-cflag). added 0.56 -
delay(int | None) # – Display time in milliseconds (-dflag). added 0.56 -
notify(bool | None) # – Do not wait for input (-Nflag). added 0.56 -
update_pane(bool | None) # – Allow the pane to keep updating while the message is displayed (-Cflag). By default tmux freezes the pane while a status message is shown. Requires tmux 3.6+ (introduced upstream by commit80eb460f). added 0.56
- Returns
-
list[str] | None Message output if get_text is True, otherwise None.
tmux command#
The tmux commands behind display_message.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Show a message on the client viewing a pane
| Language | Equivalent |
|---|---|
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | no equivalent on Pane |
| C# | Lib |
| C++ | libtmux:: |
| Swift | no equivalent on Pane |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.