Core Library0.xAPI reference

Choose documentation 1

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.

MoreLess about this notice

class libtmux-kotlin

SessionBuilder

Configure a new session, its initial command, and its windows with Server.newSession.

Source and package
Qualified name
io.github.libtmux.kotlin.SessionBuilder
Package
io.github.libtmux.kotlin
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Dsl.kt
@LibTmuxDsl public class SessionBuilder

Members5 members

  • directory property The session's working directory, which its first window starts in too.
  • env method Adds a variable to the new session's environment, keeping any already set.
  • name property
  • running method Runs argv in the first window instead of the default shell.
  • window method

Guides

task material

Pages that discuss SessionBuilder.

Esc
Search in

Type to search.

Reference previewOpen reference