Function new_window

Source
pub async fn new_window(
    session: &Session,
    window: &Window,
    pane: &Pane,
    pane_command: Option<&str>,
) -> Result<(WindowId, PaneId)>
Expand description

Create a Tmux window in a session exactly named as the passed session.

The new window attributes:

  • created in the session
  • the window name is taken from the passed window
  • the working directory is the pane’s working directory.