Skip to main content

new_session_with_layout

Function new_session_with_layout 

Source
pub fn new_session_with_layout(session: &str, layout: &str) -> Result<()>
Expand description

Creates a new Zellij session with the given layout and attaches to it.

Must be called from outside Zellij — the process replaces the current terminal with the new session (interactive, inherited stdio).

§Errors

  • Invoking zellij fails or exits with a nonzero exit status.