NewSession
Create a session.
Source and package
- Qualified name
-
libtmux::plan:: ops:: sessions:: New Session - Module
- plan.ops.sessions
- Package
- libtmux
- Source
- crates/libtmux/src/plan/ops/sessions.rs
-
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.