summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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
2009-08-08Add a flags member to the grid_line struct and use it to differentiate linesNicholas Marriott
wrapped at the screen edge from those terminated by a newline. Then use this when copying to combine wrapped lines together into one.
2009-08-08Change the way the grid is stored, previously it was:Nicholas Marriott
- a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and containts the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags.
2009-08-07If there is an error in the configuration file, don't just exit(1) as this canNicholas Marriott
cause the client to hang. Instead, send the error message, then mark the client as bad and start a normal shutdown so the server exits once the error is written. This also allows some code duplicating daemon(3) to be trimmed and logging to begin earlier. Prompted by Theo noticing the behaviour on error wasn't documented.
2009-08-07Move introduction section up into description. From jmc.Nicholas Marriott
2009-08-07if buffers overlap; result will be undefined. ok claudio@, michele@Martynas Venckus
2009-08-07tweak previous;Jason McIntyre
2009-08-07add -E flag to compile regular expressions using the extended POSIXDamien Miller
syntax. The -E flag is compatible with the other BSDs and OSX. -r is also provided as an alias for compatibility with GNU sed. feedback from jmc@ and millert@ ok millert@ pyr@ henning@ marco@
2009-08-07Using the alternative screen (smcup/rmcup) should also preserve the currentNicholas Marriott
colours and attributes. Found thanks to a report from Taylor Venable. While here also nuke a couple of extra blank lines.