Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

class libtmux-kotlin latest

Session

Package io.github.libtmux.kotlin.Session io.github.libtmux.kotlin

A tmux session and its captured windows and properties.

View as Markdown

Source and package
Module
io.github.libtmux.kotlin
Package
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Session.kt
Other languages
PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftScala F#
public class Session
class [source]

Description#

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated extension in SessionOperations.kt . Companion hosts the generated query field namespace ( Session.name , Session.attached , ...).

Discussed in Server, session, window, pane · Coroutines and flows , Getting started

In other ports A tmux session

Members26 members#

Parent objects1 member#

Collections and queries1 member#

  • windows property This session's windows, in tmux's order. A pure read of the capture.

Common operations2 members#

  • newWindow method Creates a window in this session and returns that exact window.
  • environment method This session's own environment, which a process started in it is given on top of the server's.

Other members22 members#

  • activePane property The active pane of the active window. A pure read of the capture.
  • activeWindow property The window tmux had active in this session. A pure read of the capture.
  • asJava property The Java session this wraps: the same object, for a Java API that takes one.
  • attached property Whether a client was attached when this was captured.
  • Companion module
  • detachClients method Detaches every client attached to this session, leaving the session running.
  • equals method
  • expand method Expands a tmux format in this session's context, and answers with what it came to.
  • hashCode method
  • hooks method This session's own hooks.
  • id property The session's stable id.
  • kill method Ends this session.
  • lastWindow method Returns to the window that was active before this one.
  • name property The session name, which a user may change at any time.
  • nextWindow method Moves to the next window in this session, wrapping at the end.
  • options method This session's own options.
  • previousWindow method Moves to the previous window in this session, wrapping at the start.
  • refresh method Takes a new capture and returns this session as it is now.
  • rename method Renames this session and returns its replacement capture.
  • selectWindow method Makes a window of this session the active one.
  • setHistoryLimit method Sets the scrollback retained by panes created in this session.
  • toString method
Esc

Type to search.