Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

plan.ops.sessions.NewSession

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
plan.ops.sessions
Package
libtmux
Source
crates/libtmux/src/plan/ops/sessions.rs
struct plan.ops.sessions.NewSession
structoverload [source]
structoverload [source]
struct plan.ops.sessions.NewSession

Create a session.

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());

3 declared, 0 inherited

Members

  • 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.