summaryrefslogtreecommitdiffstats
path: root/cmd-server-info.c
AgeCommit message (Collapse)Author
2009-12-10Sync OpenBSD patchset 585:Tiago Cunha
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.
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
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...
2009-11-28Sync OpenBSD patchset 567:Tiago Cunha
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
2009-11-14Sync OpenBSD patchset 539:Tiago Cunha
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.
2009-11-04Sync OpenBSD patchset 483:Tiago Cunha
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.
2009-11-02Sync OpenBSD patchset 475:Tiago Cunha
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 #().
2009-10-28Sync OpenBSD patchset 467:Tiago Cunha
tabs are better; ok nicm
2009-10-15Fix CVS keyword.Tiago Cunha
2009-10-15Sync OpenBSD patchset 406:Tiago Cunha
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.
2009-09-07Sync OpenBSD patchset 320:Tiago Cunha
Reference count clients and sessions rather than relying on a saved index for cmd-choose-*.
2009-09-03Sync OpenBSD patchset 309:Tiago Cunha
Accept -l to make it easier for people who use tmux as a login shell to use $SHELL. Originally from martynas@, tweaked by me.
2009-08-20Sync OpenBSD patchset 270:Tiago Cunha
Tag a few missed printf-like functions and fix a missing "%s".
2009-08-14Sync OpenBSD patchset 243:Tiago Cunha
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.
2009-08-09Sync OpenBSD patchset 226:Tiago Cunha
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.
2009-07-28Sync OpenBSD patchset 191:Tiago Cunha
If select-layout is not given an argument, reapply the last layout used in the window, if any.
2009-07-28Sync OpenBSD patchset 181:Tiago Cunha
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.
2009-07-14Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott
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.
2009-06-25vis compat stuff.Nicholas Marriott
2009-06-25Restore $Id$ and add script to do so.Nicholas Marriott
2009-06-25Use vis(3) instead of handrolled function.Nicholas Marriott
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-04-29Don't need all this %p stuff anymore really.Nicholas Marriott
2009-04-29Some tweaks for Solaris.Nicholas Marriott
Get rid of vis.* in favour of a small replacement function.
2009-04-02swap-pane command.Nicholas Marriott
2009-04-01Basic horizontal splitting and layout management. Still some redraw and otherNicholas Marriott
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.
2009-03-29Include protocol version.Nicholas Marriott
2009-03-29Add some more to server-info.Nicholas Marriott
2009-02-11Move sx,sy into tty rather than client.Nicholas Marriott
2009-01-19Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott
command line.
2009-01-18Show tty flags too.Nicholas Marriott
2009-01-10Use "%4d" instead of " %2d".Nicholas Marriott
2009-01-10Change server-info format.Nicholas Marriott
2009-01-10vis functions for Linux.Nicholas Marriott
2009-01-10Trim spaces.Nicholas Marriott
2009-01-10Don't show newlines etc.Nicholas Marriott
2009-01-10Line up indexes.Nicholas Marriott
2009-01-10New command, server-info, to show server info + terminal details. Also tweak ↵Nicholas Marriott
term stuff a bit.