On this page
Client
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Client.swift
- Bases:
A client attached to a tmux server.
tmux targets a client by its current name or tty, not by
client_pid. A disconnect followed by name reuse can therefore make a held value name a replacement within the same daemon. The process id remains useful metadata, but it is not a stable client-target key.
15 declared, 0 inherited
Members
- !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
- filterFieldID(for:) method The stable wire id for a key path, or
nilif the property is not filterable. - filterFieldType(_:) method The value kind an id names, or
nilwhen this model does not know it. - filterValue(_:of:) method Reads the field an id names, or
nilif this model has no such field. - init(from:) method Creates a new instance by decoding from the given decoder.
- init(name:tty:processID:width:height:isControlMode:sessionID:incarnation:) method
- height property The terminal's height in cells, absent on the same terms as
width. - id property The client's name, which is its terminal path for an ordinary client.
- incarnation property The daemon this value was read from.
- isControlMode property Whether this client is a control-mode connection rather than a terminal.
- name property tmux's name for the client, which for a terminal is the path of its tty. It is what a command targeting a client has to say.
- processID property The client process, which is not the server: killing it detaches rather than shutting anything down.
- sessionID property The session the client is looking at. A client attaches to exactly one, and switching sessions changes this rather than making a new client.
- tty property The terminal device behind the client, empty for one with no terminal.
- width property The terminal's width in cells, absent for a client that has no terminal. tmux reports it as empty for a control-mode connection, so
nilis what it said rather than a zero this library invented.