File tree 4 files changed +78
-5
lines changed
4 files changed +78
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
18
18
class Pane (TmuxMappingObject , TmuxRelationalObject ):
19
+ """
20
+ A :term:`tmux(1)` :term:`pane` [#]_.
21
+
22
+ ``Pane`` instances can send commands directly to a pane, or traverse
23
+ between linked tmux objects.
19
24
20
- """:term:`tmux(1)` :term:`pane`.
25
+ Parameters
26
+ ----------
27
+ window : :class:`Window`
21
28
22
- :param window: :class:`Window`
29
+ Notes
30
+ -----
23
31
24
32
.. versionchanged:: 0.8
25
33
Renamed from ``.tmux`` to ``.cmd``.
34
+
35
+ References
36
+ ----------
37
+
38
+ .. [#] tmux pane. openbsd manpage for TMUX(1).
39
+ "Each window displayed by tmux may be split into one or more
40
+ panes; each pane takes up a certain area of the display and is
41
+ a separate terminal."
42
+
43
+ https://man.openbsd.org/tmux.1#WINDOWS_AND_PANES.
44
+ Accessed April 1st, 2018.
26
45
"""
27
46
#: namespace used :class:`~libtmux.common.TmuxMappingObject`
28
47
formatter_prefix = 'pane_'
Original file line number Diff line number Diff line change 20
20
21
21
class Server (TmuxRelationalObject , EnvironmentMixin ):
22
22
23
- """The :term:`tmux(1)` server.
23
+ """
24
+ The :term:`tmux(1)` :term:`server` [#]_.
24
25
25
26
- :attr:`Server._sessions` [:class:`Session`, ...]
26
27
@@ -32,6 +33,25 @@ class Server(TmuxRelationalObject, EnvironmentMixin):
32
33
33
34
When instantiated stores information on live, running tmux server.
34
35
36
+ Parameters
37
+ ----------
38
+ socket_name : str, optional
39
+ socket_path : str, optional
40
+ config_file : str, optional
41
+ colors : str, optional
42
+
43
+ References
44
+ ----------
45
+ .. [#] CLIENTS AND SESSIONS. openbsd manpage for TMUX(1)
46
+ "The tmux server manages clients, sessions, windows and panes.
47
+ Clients are attached to sessions to interact with them, either when
48
+ they are created with the new-session command, or later with the
49
+ attach-session command. Each session has one or more windows linked
50
+ into it. Windows may be linked to multiple sessions and are made up
51
+ of one or more panes, each of which contains a pseudo terminal."
52
+
53
+ https://man.openbsd.org/tmux.1#CLIENTS_AND_SESSIONS.
54
+ Accessed April 1st, 2018.
35
55
"""
36
56
37
57
#: ``[-L socket-name]``
Original file line number Diff line number Diff line change @@ -24,9 +24,26 @@ class Session(
24
24
TmuxRelationalObject ,
25
25
EnvironmentMixin
26
26
):
27
- """:term:`tmux(1)` session.
27
+ """
28
+ A :term:`tmux(1)` :term:`session` [#]_.
28
29
29
30
Holds :class:`Window` objects.
31
+
32
+ Parameters
33
+ ----------
34
+ server : :class:`Server`
35
+
36
+ References
37
+ ----------
38
+ .. [#] tmux session. openbsd manpage for TMUX(1).
39
+ "When tmux is started it creates a new session with a single window
40
+ and displays it on screen..."
41
+
42
+ "A session is a single collection of pseudo terminals under the
43
+ management of tmux. Each session has one or more windows linked to
44
+ it."
45
+
46
+ https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.
30
47
"""
31
48
32
49
#: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
Original file line number Diff line number Diff line change 21
21
22
22
23
23
class Window (TmuxMappingObject , TmuxRelationalObject ):
24
- """:term:`tmux(1)` window."""
24
+ """
25
+ A :term:`tmux(1)` :term:`window` [#]_.
26
+
27
+ Holds :class:`Pane` objects.
28
+
29
+ Parameters
30
+ ----------
31
+ session : :class:`Session`
32
+
33
+ References
34
+ ----------
35
+ .. [#] tmux window. openbsd manpage for TMUX(1).
36
+ "Each session has one or more windows linked to it. A window
37
+ occupies the entire screen and may be split into rectangular
38
+ panes..."
39
+
40
+ https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.
41
+ """
25
42
26
43
#: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
27
44
child_id_attribute = 'pane_id'
You can’t perform that action at this time.
0 commit comments