summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-08-12When started as the shell, __progname contains a leading -, so hardcode "tmux"Nicholas Marriott
for socket path and log files, and strip it when working out the shell.
2009-08-12sort options;Jason McIntyre
2009-08-12imsg closes the fd after sending, so dup() STDIN_FILENO before passing it toNicholas Marriott
the parent, otherwise TIOCGWINSZ will fail when the window is resized (that could actually be moved into the server but this is more future-proof and avoids breaking the protocol).
2009-08-12support most of scp(1)'s commandline arguments in sftp(1), as a firstDamien Miller
step towards making sftp(1) a drop-in replacement for scp(1). One conflicting option (-P) has not been changed, pending further discussion. Patch from carlosvsilvapt@gmail.com as part of his work in the Google Summer of Code
2009-08-11Initialise log_fd to -1, prevents spurious disconnection of the client when itNicholas Marriott
ends up as fd 0 (likely if the server is started with "tmux start"). Also add some extra debugging messages to server.c.
2009-08-11Have the client pass its stdin fd to the server when identifying itself andNicholas Marriott
have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). This allows tmux to be used as the shell, so also change so that when working out the command to execute if default-command is empty (the default), tmux will try not execute itself.
2009-08-11Add a TTY_OPENED flag and tidy a little.Nicholas Marriott
2009-08-11Drop the no_stop argument to tty_close and tty_free in favour of a flag in theNicholas Marriott
tty struct.
2009-08-11Switch tmux to use imsg. This is the last major change to make theNicholas Marriott
client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. As a side effect this also makes the code tidier, fixes a problem with the way errors reported during server startup were handled, and supports fd passing (which will be used in future). Looked over by eric@, thanks. Please note that mixing a client with this change with an older server or vice versa may cause tmux to crash or hang - tmux should be completely exited before upgrading.
2009-08-11Add flags for 1+2 and 2 arguments to the generic target code, use it forNicholas Marriott
cmd-set-environment/option/window-option and remove the generic options parsing.
2009-08-10No arguments are the same as new-session and this requires the environment toNicholas Marriott
be sent, so set that flag too when argc == 0.
2009-08-10Reset the attributes after drawing all or part of the screen, and reset theNicholas Marriott
region before poll(2). This reduces (but does not eliminate) the chance of the attributes not being normal if tmux is disconnected without warning (ssh ~., reboot from inside, etc).
2009-08-10Use the right source and destination lines in grid_duplicate_lines.Nicholas Marriott
2009-08-10some minor tweaks; ok nicmJason McIntyre
2009-08-09sync to 1.8.4: three additional .St macrosIngo Schwarze
2009-08-09sync to 1.8.4: remove superfluous FIXMEsIngo Schwarze
2009-08-09sync to 1.8.4: full .An -[no]split supportIngo Schwarze
2009-08-09sync to 1.8.4: correct error message to complain about .An line argumentsIngo Schwarze
2009-08-09sync to 1.8.4: now that leading blanks in literal text are preserved,Ingo Schwarze
.Bd printing can be simplified (and must be fixed)
2009-08-09sync to 1.8.4: preserve leading whitespace in literal textIngo Schwarze
2009-08-09now in sync with version 1.8.3Ingo Schwarze
excepting one change to .%T that I first want to discuss upstream
2009-08-09sync to 1.8.3: quote macro names without a preceding dotIngo Schwarze
2009-08-09sync to 1.8.3: ugly fix for .Bl or .Bd when nested in .Bl -hangIngo Schwarze
2009-08-09zap trailing whitespace;Jason McIntyre
2009-08-09sync to 1.8.3: In .Bl -column, handle one column in excess,Ingo Schwarze
but still issue a warning
2009-08-09sync to 1.8.3: .Pa without arguments is a synonym for .Pa ~Ingo Schwarze
2009-08-09sync to 1.8.3: bring vspace handling in .Bl -column and -diag closer to groffIngo Schwarze
2009-08-09sync to 1.8.3: remove doubled .Bl -diag whitespaceIngo Schwarze
2009-08-09sync to 1.8.3: right-most column now fills to the right marginIngo Schwarze
(undocumented groff behaviour)
2009-08-09multiple spacing fixes for .Bl -hang, -tag, -inset and -diagIngo Schwarze
ok kristaps@ and included in 1.8.3
2009-08-09document the "file:file" auto-fetching mode.Igor Sobrado
based on a conversation with martynas@; diff tweaked by jmc@ and martynas@ ok jmc@, martynas@
2009-08-09sync to 1.8.3: u_char needs <sys/types.h>;Ingo Schwarze
found in FreeBSD by uqs at sporlein dot net
2009-08-09now in sync with release 1.8.2Ingo Schwarze
2009-08-09sync to 1.8.2: more .Bl -column fixes, in particular:Ingo Schwarze
1) -column implies -compact 2) do not die from fewer columns than specified (more are still fatal)
2009-08-09sync to 1.8.2: remove trailing whitespaceIngo Schwarze
2009-08-09sync to 1.8.2: fix and cleanup .Bl -column phrase handlingIngo Schwarze
by using the normal argument parsing from mdoc_argv.c
2009-08-09sync to 1.8.2: use in_line_eoln instead of in_line for .Pp and .LpIngo Schwarze
no functional change, but shorter code
2009-08-09sync to 1.8.1: make .Cd parsedIngo Schwarze
kristaps@ says many SYNOPSIS sections use this; my impression is that's not in OpenBSD, but it won't do much harm here, either
2009-08-09zap trailing whitespace;Jason McIntyre
2009-08-09Minor language tweaks, change which key bindings are summarised.Nicholas Marriott
2009-08-09Nuke a dead variable found with clang and an unused declaration with lint.Nicholas Marriott
2009-08-09Show the busy and mapped pages in iostat.Artur Grabowski
2009-08-09Move the key bindings section to near the start, mention attach/detach in theNicholas Marriott
first section, and another couple of tweaks. Based on a diff from Theo.
2009-08-09Don't leak in the (rare) case of an invalid command at the end of a file notNicholas Marriott
terminated by a \n.
2009-08-08Use a temporary variable for strdup of const char *.Nicholas Marriott
2009-08-08Infrastructure and commands to manage the environment for processes startedNicholas Marriott
within tmux. There is a global environment, copied from the external environment when the server is started and each sesssion has an (initially empty) session environment which overrides it. New commands set-environment and show-environment manipulate or display the environments. A new session option, update-environment, is a space-separated list of variables which are updated from the external environment into the session environment every time a new session is created - the default is DISPLAY.
2009-08-08Tidy function a little by using a temporary variable.Nicholas Marriott
2009-08-08Options to set the colours and attributes for status-left/-right. From ThomasNicholas Marriott
Adam, thanks.
2009-08-08synchronize usage displayed by mklocale with synopsis in the manual page;Igor Sobrado
add missing cvs keywords to source code files; while here, fix cvs keywords in Makefile because they are in reverse order. ok jmc@, martynas@
2009-08-08Handle ttyname(3) failure better.Nicholas Marriott