Server.show_messages
Show server message log via $ tmux show-messages.
Source and package
-
Description#
Without
-T/-J, tmux resolves the message log against a target client; if no client is attached and target_client is omitted, tmux raisesno current client. Provide target_client (e.g. viaControlMode) when running headless, or use terminals/jobs — those modes don't require a client.Examples#
>>> with control_mode() as ctl:... result = server.show_messages(target_client=ctl.client_name)>>> isinstance(result, list)True- Parameters
- Returns
-
list[str] Server message log lines (or terminal/job summary when terminals/jobs is set).
tmux command#
The tmux commands behind show_messages.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Read the server's message log
| Language | Equivalent |
|---|---|
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Server |
| Rust | no equivalent on Server |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | Server::show_message posts a message rather than reading the log |
| Swift | no equivalent on Server |
| 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#.