aboutsummaryrefslogtreecommitdiff
path: root/cmd-server-info.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 1054:Tiago Cunha2012-03-18
| | | | | | Send secondary DA to terminals with XT in terminfo when starting up and parse it to work out the xterm version.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 895:Tiago Cunha2011-04-25
| | | | | | | | POSIX only guarantees uname() will return a non-negative value on success. ok nicm@
* Sync OpenBSD patchset 855:Tiago Cunha2011-02-15
| | | | | | | | | | | | | | | | | | | Simplify the way jobs work and drop the persist type, so all jobs are fire-and-forget. Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs themselves. When the status line is processed any jobs which don't appear in the new tree are started and the output from the old tree displayed. When a job finishes it updates the new tree with its output and that is used for any subsequent redraws. When the status interval expires, the new tree is moved to the old so that all jobs are run again. This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands of identical persistent jobs and high memory use (this can still be achieved by adding "sleep 30" but that is much less likely to happen by accident).
* Sync OpenBSD patchset 854:Tiago Cunha2011-02-15
| | | | | Use LIST_* not SLIST_*.
* Sync OpenBSD patchset 839:Tiago Cunha2011-01-21
| | | | | | Log termios backspace for each client since it is used to recognise backspace input.
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
| | | | | | | | | | | | | | | | | | | | | | Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Sync OpenBSD patchset 822:Tiago Cunha2011-01-03
| | | | | Another table that should be const.
* Switch tmux to use autoconf and automake.Nicholas Marriott2010-12-31
| | | | | Although they suck, they suck less than the alternatives.
* Sync OpenBSD patchset 806:Tiago Cunha2010-12-22
| | | | | | | | | | | Store sessions in an RB tree by name rather than a list, this is tidier and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions). Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
* Sync OpenBSD patchset 585:Tiago Cunha2009-12-10
| | | | | | | | | Add "server options" which are server-wide and not bound to a session or window. Set and displayed with "set -s" and "show -s". Currently the only option is "quiet" (like command-line -q, allowing it to be set from .tmux.conf), but others will come along.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 567:Tiago Cunha2009-11-28
| | | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Sync OpenBSD patchset 539:Tiago Cunha2009-11-14
| | | | | | Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags.
* Sync OpenBSD patchset 483:Tiago Cunha2009-11-04
| | | | | | | | | | Change session and client activity and creation time members to have more meaningful names. Also, remove the code to try and update the session activity time for the command client when a command message is received as is pointless because it des not have a session.
* Sync OpenBSD patchset 475:Tiago Cunha2009-11-02
| | | | | | | | | Add a flag for jobs that shouldn't be freed after they've died and use it for status jobs, then only kill those jobs when status-left, status-right or set-titles-string is changed. Fixes problems with changing options from inside #().
* Sync OpenBSD patchset 467:Tiago Cunha2009-10-28
| | | | | tabs are better; ok nicm
* Fix CVS keyword.Tiago Cunha2009-10-15
|
* Sync OpenBSD patchset 406:Tiago Cunha2009-10-15
| | | | | | | | Do this in a better way - print messages when exiting with nonzero. Also remove the login shell information from server-info, only the client should care about it.
* Sync OpenBSD patchset 320:Tiago Cunha2009-09-07
| | | | | | Reference count clients and sessions rather than relying on a saved index for cmd-choose-*.
* Sync OpenBSD patchset 309:Tiago Cunha2009-09-03
| | | | | | Accept -l to make it easier for people who use tmux as a login shell to use $SHELL. Originally from martynas@, tweaked by me.
* Sync OpenBSD patchset 270:Tiago Cunha2009-08-20
| | | | | Tag a few missed printf-like functions and fix a missing "%s".
* 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.
* 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 191:Tiago Cunha2009-07-28
| | | | | | If select-layout is not given an argument, reapply the last layout used in the window, if any.
* Sync OpenBSD patchset 181:Tiago Cunha2009-07-28
| | | | | | | | | | | | | | | | | Make all messages sent between the client and server fixed size. This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
* vis compat stuff.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Use vis(3) instead of handrolled function.Nicholas Marriott2009-06-25
|
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Don't need all this %p stuff anymore really.Nicholas Marriott2009-04-29
|
* Some tweaks for Solaris.Nicholas Marriott2009-04-29
| | | | | Get rid of vis.* in favour of a small replacement function.
* swap-pane command.Nicholas Marriott2009-04-02
|
* Basic horizontal splitting and layout management. Still some redraw and otherNicholas Marriott2009-04-01
| | | | | | | | | | | issues - particularly, don't mix with manual pane resizing and be careful when viewing from multiple clients; generally cycling the layout a few times will fix most problems. Getting this in for testing while I think about how to deal with manual mode. Split window as normal and cycle the layouts with C-b space. Some of the layouts will work better when swap-pane comes along.
* Include protocol version.Nicholas Marriott2009-03-29
|
* Add some more to server-info.Nicholas Marriott2009-03-29
|
* Move sx,sy into tty rather than client.Nicholas Marriott2009-02-11
|
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Show tty flags too.Nicholas Marriott2009-01-18
|
* Use "%4d" instead of " %2d".Nicholas Marriott2009-01-10
|
* Change server-info format.Nicholas Marriott2009-01-10
|
* vis functions for Linux.Nicholas Marriott2009-01-10
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Don't show newlines etc.Nicholas Marriott2009-01-10
|
* Line up indexes.Nicholas Marriott2009-01-10
|
* New command, server-info, to show server info + terminal details. Also tweak ↵Nicholas Marriott2009-01-10
term stuff a bit.