path: root/cmd-server-info.c
Commit message (Collapse)AuthorAgeFilesLines
* Sync OpenBSD patchset 839:tcunha2011-01-211-3/+4
| | | | | Log termios backspace for each client since it is used to recognise backspace input.
* Sync OpenBSD patchset 829:tcunha2011-01-071-5/+4
| | | | | | | | | | | | | | | | | | | | | 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:tcunha2011-01-031-19/+19
| | | | Another table that should be const.
* Switch tmux to use autoconf and automake.nicm2010-12-311-2/+2
| | | | Although they suck, they suck less than the alternatives.
* Sync OpenBSD patchset 806:tcunha2010-12-221-11/+4
| | | | | | | | | | 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:tcunha2009-12-101-3/+3
| | | | | | | | 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:tcunha2009-12-041-5/+5
| | | | | | 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:tcunha2009-11-281-1/+2
| | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Sync OpenBSD patchset 539:tcunha2009-11-141-2/+2
| | | | | 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:tcunha2009-11-041-2/+2
| | | | | | | | | 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:tcunha2009-11-021-1/+8
| | | | | | | | 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:tcunha2009-10-281-3/+3
| | | | tabs are better; ok nicm
* Fix CVS keyword.tcunha2009-10-151-1/+1
* Sync OpenBSD patchset 406:tcunha2009-10-151-4/+3
| | | | | | | 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:tcunha2009-09-071-6/+8
| | | | | Reference count clients and sessions rather than relying on a saved index for cmd-choose-*.
* Sync OpenBSD patchset 309:tcunha2009-09-031-3/+4
| | | | | Accept -l to make it easier for people who use tmux as a login shell to use $SHELL. Originally from [email protected], tweaked by me.
* Sync OpenBSD patchset 270:tcunha2009-08-201-5/+5
| | | | Tag a few missed printf-like functions and fix a missing "%s".
* Sync OpenBSD patchset 243:tcunha2009-08-141-2/+2
| | | | | | | | | | | | | | | | | | 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 [email protected], 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:tcunha2009-08-091-7/+9
| | | | | | | | | | | | | 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:tcunha2009-07-281-2/+2
| | | | | If select-layout is not given an argument, reapply the last layout used in the window, if any.
* Sync OpenBSD patchset 181:tcunha2009-07-281-2/+0
| | | | | | | | | | | | | | | | 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 tonicm2009-07-141-1/+1
| | | | | | | | | 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.nicm2009-06-251-1/+0
* Restore $Id$ and add script to do so.nicm2009-06-251-1/+1
* Use vis(3) instead of handrolled function.nicm2009-06-251-3/+4
* Space trimmage mega-diff.nicm2009-05-041-3/+3
* Don't need all this %p stuff anymore really.nicm2009-04-291-9/+9
* Some tweaks for Solaris.nicm2009-04-291-8/+6
| | | | Get rid of vis.* in favour of a small replacement function.
* swap-pane command.nicm2009-04-021-3/+3
* Basic horizontal splitting and layout management. Still some redraw and othernicm2009-04-011-2/+2
| | | | | | | | | | 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.nicm2009-03-291-0/+1
* Add some more to server-info.nicm2009-03-291-10/+46
* Move sx,sy into tty rather than client.nicm2009-02-111-2/+2
* Pass return code from _exec; allow command sequences to work from the ↵nicm2009-01-191-4/+3
| | | | command line.
* Show tty flags too.nicm2009-01-181-2/+3
* Use "%4d" instead of " %2d".nicm2009-01-101-6/+6
* Change server-info format.nicm2009-01-101-20/+49
* vis functions for Linux.nicm2009-01-101-0/+1
* Trim spaces.nicm2009-01-101-6/+6
* Don't show newlines etc.nicm2009-01-101-2/+2
* Line up indexes.nicm2009-01-101-4/+4
* New command, server-info, to show server info + terminal details. Also tweak ↵nicm2009-01-101-0/+115
term stuff a bit.