new_window: Create a new tmux window

Description Usage Arguments Value Examples

View source: R/window.R

Description

Create a new tmux window with name name. When the shell command completes, the window closes.

Usage

1
2
3
4
5
6
7
new_window(
  target = NULL,
  name = NULL,
  focus = TRUE,
  start_directory = NULL,
  shell_command = NULL
)

Arguments

target

A tmuxr_session or tmuxr_window. If NULL, the last session is used.

name

A string. Name of the window. If NULL, the name determined by the shell command. Default: NULL.

focus

A logical. If FALSE, the session does not make the new window the current window. Default: TRUE.

start_directory

A string. Working directory this window is run in.

shell_command

A string. Shell command to be invoked when creating the window. If NULL, the default shell is used.

Value

A tmuxr_window.

Examples

1
2
3
4
5
6
## Not run: 
s <- new_session()
new_window()
kill_session(s)

## End(Not run)

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