aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 247:Tiago Cunha2009-08-14
| | | | | | | | Initialise log_fd to -1, prevents spurious disconnection of the client when it ends up as fd 0 (likely if the server is started with "tmux start"). Also add some extra debugging messages to server.c.
* Sync OpenBSD patchset 246:Tiago Cunha2009-08-14
| | | | | | | | | | | Have the client pass its stdin fd to the server when identifying itself and 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.
* Sync OpenBSD patchset 245:Tiago Cunha2009-08-14
| | | | | Add a TTY_OPENED flag and tidy a little.
* Sync OpenBSD patchset 244:Tiago Cunha2009-08-14
| | | | | | Drop the no_stop argument to tty_close and tty_free in favour of a flag in the tty struct.
* Adjust imsg changes to the portable version due to OpenBSD patchset 243.Tiago Cunha2009-08-14
|
* Sync OpenBSD patchset 243:Tiago Cunha2009-08-14
| | | | | | | | | | | | | | | | | | | Switch tmux to use imsg. This is the last major change to make the 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.
* +.Nicholas Marriott2009-08-13
|
* Add and remove some bits.Nicholas Marriott2009-08-13
|
* Sync from OpenBSD:Nicholas Marriott2009-08-11
| | | | | | | Add flags for 1+2 and 2 arguments to the generic target code, use it for cmd-set-environment/option/window-option and remove the generic options parsing.
* +.Nicholas Marriott2009-08-11
|
* Update.Nicholas Marriott2009-08-11
|
* Sync OpenBSD patchset 241:Tiago Cunha2009-08-10
| | | | | | No arguments are the same as new-session and this requires the environment to be sent, so set that flag too when argc == 0.
* Sync OpenBSD patchset 240:Tiago Cunha2009-08-10
| | | | | | | | Reset the attributes after drawing all or part of the screen, and reset the 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).
* Sync OpenBSD patchset 239:Tiago Cunha2009-08-10
| | | | | Use the right source and destination lines in grid_duplicate_lines.
* Sync OpenBSD patchset 238:Tiago Cunha2009-08-10
| | | | | some minor tweaks; ok nicm
* Missing options are not illegal.Nicholas Marriott2009-08-09
|
* Sync OpenBSD patchset 237:Tiago Cunha2009-08-09
| | | | | zap trailing whitespace;
* Sync OpenBSD patchset 236:Tiago Cunha2009-08-09
| | | | | Minor language tweaks, change which key bindings are summarised.
* Nuke dead variable here as well, in accordance to OpenBSD patchset 235.Tiago Cunha2009-08-09
|
* Sync OpenBSD patchset 235:Tiago Cunha2009-08-09
| | | | | Nuke a dead variable found with clang and an unused declaration with lint.
* Sync OpenBSD patchset 234:Tiago Cunha2009-08-09
| | | | | | Move the key bindings section to near the start, mention attach/detach in the first section, and another couple of tweaks. Based on a diff from Theo.
* Sync OpenBSD patchset 233:Tiago Cunha2009-08-09
| | | | | | Don't leak in the (rare) case of an invalid command at the end of a file not terminated by a \n.
* Sync OpenBSD patchset 232:Tiago Cunha2009-08-09
| | | | | Use a temporary variable for strdup of const char *.
* Update.Tiago Cunha2009-08-09
|
* Sync OpenBSD patchset 231:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | | | | Infrastructure and commands to manage the environment for processes started within tmux. There is a global environment, copied from the external environment when the server is started and each session 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.
* Sync OpenBSD patchset 230:Tiago Cunha2009-08-09
| | | | | Tidy function a little by using a temporary variable.
* Update.Tiago Cunha2009-08-09
|
* Sync OpenBSD patchset 229:Tiago Cunha2009-08-09
| | | | | | Options to set the colours and attributes for status-left/-right. From Thomas Adam, thanks.
* Sync OpenBSD patchset 227:Tiago Cunha2009-08-09
| | | | | | | Add a flags member to the grid_line struct and use it to differentiate lines wrapped at the screen edge from those terminated by a newline. Then use this when copying to combine wrapped lines together into one.
* Sync OpenBSD patchset 226:Tiago Cunha2009-08-09
| | | | | | | | | | | | | | Change the way the grid is stored, previously it was: - 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 contains 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.
* Sync OpenBSD patchset 225:Tiago Cunha2009-08-09
| | | | | | | | | | | | | If there is an error in the configuration file, don't just exit(1) as this can 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.
* Sync OpenBSD patchset 224:Tiago Cunha2009-08-09
| | | | | Move introduction section up into description. From jmc.
* Sync OpenBSD patchset 223:Tiago Cunha2009-08-09
| | | | | | | | Using the alternative screen (smcup/rmcup) should also preserve the current colours and attributes. Found thanks to a report from Taylor Venable. While here also nuke a couple of extra blank lines.
* Sync OpenBSD patchset 222:Tiago Cunha2009-08-09
| | | | | tweak INTRODUCTION; from nicm and myself (jmc)
* Sync OpenBSD patchset 221:Tiago Cunha2009-08-09
| | | | | Clear the codes array earlier as tty_term_free could be called on error.
* Sync OpenBSD patchset 220:Tiago Cunha2009-08-09
| | | | | | | | | | If colours are not supported by the terminal, try to emulate a coloured background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.
* Sync OpenBSD patchset 219:Tiago Cunha2009-08-09
| | | | | | Add a -a flag to set-option and set-window-option to append to an existing string value, useful for terminal-overrides.
* Sync OpenBSD patchset 217:Tiago Cunha2009-08-09
| | | | | Show the bell/activity/current status and the window title in the choice list.
* Sync OpenBSD patchset 216:Tiago Cunha2009-08-09
| | | | | | Check for "UTF8" as well as "UTF-8" in LANG etc as it seems this may also appear.
* Make similar (untested) changes to the OS-dependent code for FreeBSD, andTiago Cunha2009-08-09
| | | | | NetBSD in accordance to OpenBSD patchset 214.
* Sync OpenBSD patchset 214:Tiago Cunha2009-08-09
| | | | | | Split the comparison into a function to make this code smaller and more understandable.
* Update.Tiago Cunha2009-08-09
|
* Sync OpenBSD patchset 213:Tiago Cunha2009-08-09
| | | | | | Don't try to free old string values (and crash) when they are overridden unless they were actually found in the source terminal description. Reported by jmc.
* Make it build on the remaining operating systems, due to the changesTiago Cunha2009-08-09
| | | | | introduced on OpenBSD patchset 211.
* DragonFlyBSD, FreeBSD, and NetBSD do not need vis.c.Tiago Cunha2009-08-09
|
* Add unvis(3) compat stuff.Tiago Cunha2009-08-09
|
* Do not include vis.h directly, since it's OS-dependent.Tiago Cunha2009-08-09
|
* Sync OpenBSD patchset 211:Tiago Cunha2009-08-09
| | | | | | | | | | Add a terminal-overrides session option allowing individual terminfo(5) entries to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
* Sync OpenBSD patchset 210:Tiago Cunha2009-08-09
| | | | | | Fix checking of setupterm(3) error codes. While there include the name of the terminal type causing the error where relevant. ok nicm@.
* Fix typo and add ref to infocmp.Nicholas Marriott2009-08-08
|