display_message: Display a message

Description Usage Arguments Value Note Examples

View source: R/utils.R

Description

Display a message.

Usage

1
display_message(target = NULL, message = NULL, verbose = FALSE, stdout = TRUE)

Arguments

target

A session, window, or pane.

message

A string. The message to display. Refer to the FORMATS section of the tmux man page for the format.

verbose

A logical. Print verbose logging as the format is parsed? Default: FALSE.

stdout

A logical. If TRUE, the message is printed to standard output. If FALSE, the message is sent to target. Default: TRUE.

Value

A string if stdout is TRUE, otherwise NULL.

Note

The verbose argument is not supported for tmux version < 2.9 and will be ignored. If verbose is TRUE a warning will be given.

Examples

1
2
3
4
5
6
7
## Not run: 
s <- new_session("jazz", height = 12)
display_message(s, "#{window_active}")
display_message(s, "session '#{session_name}' has height #{window_height}.")
kill_session(s)

## End(Not run)

tmuxr documentation built on July 1, 2020, 5:19 p.m.