Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-rs latest

NewSession

Create a session.

Source and package
Qualified name
libtmux::plan::ops::sessions::NewSession
Module
plan.ops.sessions
Package
libtmux
Source
crates/libtmux/src/plan/ops/sessions.rs
struct plan.ops.sessions.NewSession

Examples#

use libtmux::plan::{NewSession, Plan};
let mut plan = Plan::new();
let session = plan.add(NewSession::new("work"));
// The session, its first window, and that window's pane all come from one
// command, so none of them costs a second round trip.
let _ = (session, session.window(), session.pane());

Members3#

  • new method Create a detached session with this name.
  • start_directory method Start the session's first window in this directory.
  • window_name method Name the session's first window.
Esc

Type to search.

Reference previewOpen reference