Commit Graph

20 Commits

Author SHA1 Message Date
Marc André Tanner b2ada74d43 Manual page style fixes 2020-04-19 13:08:07 +02:00
Marc André Tanner c33ee37b43 Expose current session socket as $ABDUCO_SOCKET
This is an absolute path to the Unix domain socket representing the
current session.
2018-05-15 17:10:18 +02:00
Marc André Tanner 4c3e2c8c70 Expose current session name as $ABDUCO_SESSION
The supervised command can use it to determine in which session it
is running. It is not necessarily identical to the file name of the
underlying socket as stored in the file system.
2018-05-15 17:08:44 +02:00
Marc André Tanner 5eb7317971 Convert manual page to mdoc(7) format, restructure content 2018-03-18 15:06:37 +01:00
Marc André Tanner fd34b98db7 Add explicit option for command pass through
This allows commands to be send interactively (i.e. when stdin refers
to a terminal). Also imply attach action if none is given, hence:

    $ abduco -p session
    cowsay hi
    ^D

can also be used to send input to a session.
2018-03-17 13:30:52 +01:00
Marc André Tanner c901f2bbb8 If stdin is not a terminal pass-through its data to the session
This allows to send commands to a running session:

    echo cowsay hi | abduco -a session

See #8 for initial discussion of the feature.
2018-03-17 13:30:52 +01:00
Marc André Tanner 5a46912d62 Add -q (quiet) option to disable unnecessary output 2018-03-17 13:30:52 +01:00
Michael Reed 25d64fa93c Fix manual page markup
The space between `-e detachkey` was being underlined, when only
`detachkey` should be.

Tested with mandoc from OpenBSD -current and groff 1.22.3, the latter of
which is used by the vast majority of Linux distributions for formatting
manual pages.
2016-01-25 01:26:10 -05:00
Marc André Tanner 3e9a3fdf4d Make socket directory location configurable via config.def.h
Introduce $ABDUCO_SOCKET_DIR environment variable to set a
default location.
2016-01-06 17:18:44 +01:00
Luke Clifton 1fcd6e4f44 Added -l option to move clients to the bottom of the stack.
This means it wont take control over the window size until
it is the last remaining one, unless another client connects
with the -l option set at a later time.
2016-01-02 20:01:03 +00:00
Marc André Tanner cefcaeb451 Update man page 2015-02-26 15:30:11 +01:00
yy 0102cf840e Remove -C mode, in favour of a -f flag
that works with -c, -n or -A, which forces the creation of a
new session when there is an existing but already terminated
session of the same name.
2015-02-26 13:58:05 +01:00
Marc André Tanner 2dd042f974 Fix access permissions on non-Linux systems
Create sockets in a per user directory with proper permissions
either in

 $HOME/.abduco/session-name

or if not possible in

 /tmp/abduco/$USER/session-name
2015-02-25 23:24:40 +01:00
David 1946d8387a Added -C option
for collection of exit status and creation of new session in one go
2014-12-22 13:32:42 +01:00
Evan Hanson 450062468c Add whatis entry to man page 2014-07-20 09:54:32 +02:00
Marc André Tanner b8b76171e8 Tweak manual page 2014-06-30 15:01:39 +02:00
Marc André Tanner 0ca1a36cbc Man page tweaks 2014-06-20 13:24:57 +02:00
Marc André Tanner eccf9fd16e Introduce read only sessions (-r option)
Based on a patch from Lars Kellogg-Stedman.
2014-03-22 17:27:59 +01:00
Marc André Tanner 06e4d23bd1 Update man page 2014-03-07 19:53:50 +01:00
Marc André Tanner 89cbbb3aa6 Initial import 2014-02-18 23:04:00 +01:00