File tree Expand file tree Collapse file tree 4 files changed +78
-5
lines changed Expand file tree Collapse file tree 4 files changed +78
-5
lines changed Original file line number Diff line number Diff line change 1616
1717
1818class 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.
1924
20- """:term:`tmux(1)` :term:`pane`.
25+ Parameters
26+ ----------
27+ window : :class:`Window`
2128
22- :param window: :class:`Window`
29+ Notes
30+ -----
2331
2432 .. versionchanged:: 0.8
2533 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.
2645 """
2746 #: namespace used :class:`~libtmux.common.TmuxMappingObject`
2847 formatter_prefix = 'pane_'
Original file line number Diff line number Diff line change 2020
2121class Server (TmuxRelationalObject , EnvironmentMixin ):
2222
23- """The :term:`tmux(1)` server.
23+ """
24+ The :term:`tmux(1)` :term:`server` [#]_.
2425
2526 - :attr:`Server._sessions` [:class:`Session`, ...]
2627
@@ -32,6 +33,25 @@ class Server(TmuxRelationalObject, EnvironmentMixin):
3233
3334 When instantiated stores information on live, running tmux server.
3435
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.
3555 """
3656
3757 #: ``[-L socket-name]``
Original file line number Diff line number Diff line change @@ -24,9 +24,26 @@ class Session(
2424 TmuxRelationalObject ,
2525 EnvironmentMixin
2626):
27- """:term:`tmux(1)` session.
27+ """
28+ A :term:`tmux(1)` :term:`session` [#]_.
2829
2930 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.
3047 """
3148
3249 #: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
Original file line number Diff line number Diff line change 2121
2222
2323class 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+ """
2542
2643 #: unique child ID key for :class:`~libtmux.common.TmuxRelationalObject`
2744 child_id_attribute = 'pane_id'
You can’t perform that action at this time.
0 commit comments