Function new_session

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

Create a Tmux session (and thus a window & pane).

The new session attributes:

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