7 .Nd terminal session manager
19 .Cm command Op args ...
25 .Cm command Op args ...
31 .Cm command Op args ...
36 disassociates a given application from its controlling
37 terminal, thereby providing roughly the same session attach/detach support as
43 A session comprises of an
45 server process which spawns a user
46 command in its own pseudo terminal
48 Each session is given a name represented by a unix domain socket
50 stored in the local file system.
52 clients can connect to it and their standard input output streams
53 are relayed to the command supervised by the server.
56 operates on the raw I/O byte stream without interpreting any terminal
58 As a consequence the terminal state is not preserved across sessions.
59 If this functionality is desired, it should be provided by another
65 If no command line arguments are given, all currently active sessions are
66 listed sorted by their respective creation date.
67 Lines starting with an asterisk
69 indicate that at least one client is currently connected.
72 signals that the command terminated while no client was connected.
73 Attaching to the session will print its exit status.
74 The next column shows the PID of the server process, followed by the session
78 provides different actions of which one must be provided.
80 .Bl -tag -width indent
82 Attach to an existing session.
84 Try to connect to an existing session, upon failure create said session and attach immediately to it.
86 Create a new session and attach immediately to it.
88 Create a new session but do not attach to it.
93 Additionally the following options can be provided to further tweak
95 .Bl -tag -width indent
97 Set the key to detach.
100 which is specified as ^\\ i.e. Ctrl is represented as a caret
103 Force creation of session when there is an already terminated session of the same name,
104 after showing its exit status.
106 Attach with the lowest priority, meaning this client will be the last to control the size.
108 Pass through content of standard input to the session.
115 Be quiet, do not print informative messages.
117 Read-only session, user input is ignored.
119 Print version information and exit.
124 .Bl -tag -width indent
126 Whenever the primary client resizes its terminal the server process will deliver a
128 signal to the supervised process.
130 If for some reason the unix domain socket representing a session is deleted, sending
132 to the server process will recreate it.
139 .Bl -tag -width indent
143 is not specified, the environment variable
145 is examined, if it is not set
148 .It Ev ABDUCO_SESSION
149 The current session name available to the supervised command.
151 The absolute path of the session socket available to the supervised command.
156 section for environment variables used in determining the location
157 of unix domain sockets representing sessions.
160 All session related information is stored in the following directories (first
164 .Ev $ABDUCO_SOCKET_DIR/abduco
168 .Ev $TMPDIR/abduco/$USER
170 .Ev /tmp/abduco/$USER
174 However, if a given session
176 represents either a relative or absolute path it is used unmodified.
181 Start a new session (assuming
187 .Dl $ abduco -c my-session
189 do some work, then detach by pressing
191 list existing session by running
193 without any arguments and later reattach with
195 .Dl $ abduco -a my-session
197 Alternatively, we can also explicitly specify the command to run.
199 .Dl $ abduco -c my-session /bin/sh
205 .Dl $ abduco -e ^z -a my-session
207 Send a command to an existing session.
209 .Dl $ echo make | abduco -a my-session
211 Or in a slightly more interactive fashion.
213 .Dl $ abduco -p my-session
226 .An Marc André Tanner Aq mat at brain-dump.org