summaryrefslogtreecommitdiffstats
path: root/client.c
AgeCommit message (Collapse)Author
2023-07-10Merge branch 'obsd-master'Thomas Adam
2023-07-10It should no longer be necessary to ignore SIGCHLD because it is nownicm
blocked around daemon(), and doing so causes trouble with newer libevent (it cannot restore the original handler). Reported by Azat Khuzhin in GitHub issue 3626.
2023-07-10Merge branch 'obsd-master'Thomas Adam
2023-07-10Loop around waitpid in client, from Azat Khuzhin.nicm
2023-01-06Merge branch 'obsd-master'Thomas Adam
2023-01-06If a pane is killed, cancel reading from the file. GitHub issue 3422.nicm
2022-10-18Do not attempt to connect to the socket as a client if systemd is active, fromNicholas Marriott
Julien Moutinho in GitHub issue 3345.
2022-05-30Add an ACL list for users connecting to the tmux socket. Users may benicm
forbidden from attaching, forced to attach read-only, or allowed to attach read-write. A new command, server-access, configures the list. tmux gets the user using getpeereid(3) of the client socket. Users must still configure file system permissions manually. From Dallas Lyons and others.
2022-04-06Add an ACL list for users connecting to the tmux socket. Users may be forbiddenNicholas Marriott
from attaching, forced to attach read-only, or allowed to attach read-write. A new command, server-access, configures the list. tmux gets the user using getpeereid(3) of the client socket. Users must still configure file system permissions manually.
2022-02-28Merge branch 'obsd-master' into masterThomas Adam
2022-02-28Exit on SIGHUP before attach also, GitHub issue 3084.nicm
2021-08-27Merge branch 'obsd-master' into masterThomas Adam
2021-08-27Replace %% in command lists (by copying them) for template arguments ,nicm
this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
2021-02-17Merge branch 'obsd-master' into masterThomas Adam
2021-02-17Merge branch 'obsd-master' into masterThomas Adam
2021-02-17Move the call to setupterm() into the client and have it pass thenicm
results to the server over imsg, means the server does not need to enter ncurses or read terminfo db. Old clients will not work with a new server.
2021-02-12Do not care about the server socket closing if exiting anyway.nicm
2021-02-11Add a couple of helper functions, and flush imsgs on exit.nicm
2021-02-11Move file handling protocol stuff all into file.c so it can be reusednicm
more easily.
2021-01-17Merge branch 'obsd-master' into masterThomas Adam
2021-01-17Look for libevent2 differently from libevent for platforms with both.Nicholas Marriott
2021-01-17Add -N flag to never start server even if command would normally do so,nicm
GitHub issue 2523.
2020-10-30Merge branch 'obsd-master'Thomas Adam
2020-10-30With csh, a tmux client gets SIGTERM before SIGCONT when killed withnicm
"kill %%", so when the client tells the server it got SIGCONT, don't use bits that may already have been freed when it got SIGTERM. Also don't print anything on exit if we get SIGTERM while suspended. Reported by Theo.
2020-09-22Merge branch 'obsd-master'Thomas Adam
2020-09-22Fix warnings on some platforms with %llx and add a new message to handlenicm
64-bit client flags.
2020-06-18Merge branch 'obsd-master'Thomas Adam
2020-06-18Add a flag to make a client wait for an empty line before exiting innicm
control mode to avoid stray commands ending up in the shell.
2020-06-10Merge branch 'obsd-master'Thomas Adam
2020-06-10Instead of a buffer size limit on each pane, set a limit of 300 secondsnicm
of data for each client in control mode.
2020-06-01Merge branch 'obsd-master'Thomas Adam
2020-06-01Instead of sending all data to control mode clients as fast as possible,nicm
add a limit of how much data will be sent to the client and try to use it for panes with some degree of fairness. GitHub issue 2217, with George Nachman.
2020-05-26Merge branch 'obsd-master'Thomas Adam
2020-05-26Pass the stdout file descriptor from the client as well as stdin and usenicm
them for control clients directly instead of passing everything via the client.
2020-05-13Merge branch 'obsd-master'Thomas Adam
2020-05-08imsg.h needs uio.h, pointed out by deraadtnicm
2020-04-27Do not close the stdout file descriptor in control mode as it will benicm
needed for printing the exit messages. Fixes a bug when detaching with iTerm2.
2020-04-27Do not close stdout file descriptor in control mode since it will be needed forNicholas Marriott
printing the exit messages.
2020-04-20Merge branch 'obsd-master'Thomas Adam
2020-04-20Tidy up the terminal detection and feature code and add named sets ofnicm
terminal features, each of which are defined in one place and map to a builtin set of terminfo(5) capabilities. Features can be specified based on TERM with a new terminal-features option or with the -T flag when running tmux. tmux will also detect a few common terminals from the DA and DSR responses. This is intended to make it easier to configure tmux's use of terminfo(5) even in the presence of outdated ncurses(3) or terminfo(5) databases or for features which do not yet have a terminfo(5) entry. Instead of having to grok terminfo(5) capability names and what they should be set to in the terminal-overrides option, the user can hopefully just give tmux a feature name and let it do the right thing. The terminal-overrides option remains both for backwards compatibility and to allow tweaks of individual capabilities. tmux already did much of this already, this makes it tidier and simpler to configure.
2020-04-13Merge branch 'obsd-master'Thomas Adam
2020-04-13Make struct cmd local to cmd.c and move it out of tmux.h.nicm
2020-04-09Merge branch 'obsd-master'Thomas Adam
2020-04-09Some unnecessary assignments and unused variables.nicm
2020-03-30Merge branch 'obsd-master'Thomas Adam
2020-03-30Add to rather than replace flags with -c.nicm
2020-03-12Merge branch 'obsd-master'Thomas Adam
2020-03-12When the server socket is given by the user with -S, create it withnicm
umask 177 instead of 117 because it may not be in a safe directory like the default directory in /tmp. The user can chmod it more open after it is created if they want.
2020-01-29Merge branch 'obsd-master'Thomas Adam
2020-01-29Warn if a message type that is no longer used is received.nicm