- Module
- io.github.libtmux.Session
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Session.java
- Other languages
- PythonRubyLuaTypeScriptRustGo.NETC++Swift
-
One tmux session, as one capture saw it.
Identity is the server and the session id. A name is state: a user can rename a session at any time, and a handle whose equality included the name would stop matching itself the moment they did.
#windows()reads the capture this handle came from and issues no command. To see newer state, take a new capture.Discussed in Java workspace builder examples , Java workspace builder behavior · Architecture
In other ports A tmux session
- Python
libtmux.Session - Ruby
LibTmux::Session - Lua
libtmux.Session - TypeScript
session.Session - Rust
session.Session - Go
tmux.Session - .NET
LibTmux.Session - C++
libtmux::Session - Swift
Session
- Python
26 declared, 0 inherited
Members
- windows method This session's windows, in tmux's order. A pure read of the capture.
- newWindow method Creates a window in this session and returns that exact window.
- kill method Ends this session. Every window in it goes with it.
- rename method Renames this session and returns its replacement capture.
- hooks method This session's own hooks.
- options method This session's own options.
- id method The session's stable id.
- name method The session name, which a user may change at any time.
- attached method Whether a client was attached when this was captured.
- detachClients method Detaches every client attached to this session, leaving the session running.
- activeWindow method The window tmux had active in this session. A pure read of the capture.
- activePane method The active pane of the active window. A pure read of the capture.
- refresh method Takes a new capture and returns this session as it is now.
- nextWindow method Moves to the next window in this session, wrapping at the end.
- previousWindow method Moves to the previous window in this session, wrapping at the start.
- lastWindow method Returns to the window that was active before this one.
- server method The server this session lives on.
- selectWindow method Makes a window of this session the active one.
- environment method This session's own environment, which a process started in it is given on top of the server's.
- equals method
- expand method Expands a tmux format in this session's context, and answers with what it came to.
- hashCode method
- Session method
- setHistoryLimit method Sets the scrollback retained by panes created in this session.
- snapshot method
- toString method