aboutsummaryrefslogtreecommitdiff
path: root/cmd-show-messages.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2017-04-22
|\
| * Get rid of the extra layer of flags and cmd_prepare() and just store thenicm2017-04-22
| | | | | | | | | | | | CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
* | Merge branch 'obsd-master'Thomas Adam2017-04-20
|\|
| * If a #() command doesn't exit, use its most recent line of output (itnicm2017-04-20
| | | | | | | | | | | | | | must be a full line). Don't let it redraw the status line more than once a second. Requested by someone about 10 years ago...
* | Merge branch 'obsd-master'Thomas Adam2017-03-20
|\| | | | | | | | | Conflicts: utf8.c
| * Fix a couple of argument types.nicm2017-03-17
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-24
|\|
| * server-info can become an alias rather than a command.nicm2017-01-24
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Mass rename struct cmd_q to struct cmdq_item and related.nicm2016-10-16
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-15
|\|
| * Add CMD_AFTERHOOK flag to the easy commands that don't need any special ↵nicm2016-10-14
| | | | | | | | handling.
* | Merge branch 'obsd-master'Thomas Adam2016-10-12
|\| | | | | | | | | | | Conflicts: format.c osdep-openbsd.c
| * Add static in cmd-* and fix a few other nits.nicm2016-10-10
| |
* | Merge branch 'obsd-master'Thomas Adam2016-01-19
|\|
| * I no longer use my SourceForge address so replace it.nicm2016-01-19
| |
* | Merge branch 'obsd-master'Thomas Adam2015-12-14
|\|
| * Instead of combined flags for -c, -s, -t, split into different setsnicm2015-12-14
| | | | | | | | using an enum and simplify the parsing code.
* | Merge branch 'obsd-master'Thomas Adam2015-12-13
|\|
| * Use member names in cmd_entry definitions so I stop getting confusednicm2015-12-13
| | | | | | | | about the order.
* | Merge branch 'obsd-master'Thomas Adam2015-12-13
|\|
| * Instead of every command resolving the target (-t or -s) itself, preparenicm2015-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the state (client, session, winlink, pane) for it it before entering the command. Each command provides some flags that tell the prepare step what it is expecting. This is a requirement for having hooks on commands (for example, if you hook "select-window -t1:2", the hook command should to operate on window 1:2 not whatever it thinks is the current window), and should allow some other target improvements. The old cmd_find_* functions remain for the moment but that layer will be dropped later. Joint work with Thomas Adam.
* | Merge branch 'obsd-master'Thomas Adam2015-11-25
|\| | | | | | | | | | | | | Conflicts: log.c proc.c tmux.c
| * Remove the -I part of show-messages which isn't really that useful; thenicm2015-11-24
| | | | | | | | | | server start time can now be accessed with a new start_time format (use: tmux display -p '#{t:start_time}')
| * Show libevent version in showmsgs -I.nicm2015-11-24
| |
| * Make the log stuff a bit tidier with some helper functions.nicm2015-11-24
| |
* | Merge branch 'obsd-master'Thomas Adam2015-07-28
|\|
| * Tidy up the way terminals are described and move some structs out of tmux.h.nicm2015-07-28
| |
* | Merge branch 'obsd-master'Thomas Adam2015-05-13
|\|
| * Tidy blank lines when outputting server info.nicm2015-05-12
| |
* | Merge branch 'obsd-master'Thomas Adam2015-04-25
|\|
| * Make message log a TAILQ.nicm2015-04-25
| |
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-10-21
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
| * Instead of setting up the default keys by building the key structnicm2014-10-20
| | | | | | | | | | | | | | | | | | directly with a helper function in the cmd_entry, include a table of bind-key commands and pass them through the command parser and a temporary cmd_q. As well as being smaller, this will allow default bindings to be command sequences which will probably be needed soon.
* | Merge branch 'obsd-master'Thomas Adam2014-02-16
|\| | | | | | | | | | | Conflicts: tmux.1 tmux.c
| * Style nit - no space between function name and bracket.nicm2014-02-14
| |
* | Fixup BSD specific things from last mergeThomas Adam2014-01-31
| | | | | | | | | | | | | | There's entries for header files we don't use, and the cvsimport doesn't like removing files automatically, etc., and it won't have known to have done this from autoconf's POV, so define that in the correct place, hence the removal of the previously committed Makefile.
* | Merge branch 'obsd-master'Thomas Adam2014-01-31
|\| | | | | | | | | | | | | Conflicts: Makefile cmd-server-info.c cmd-start-server.c
| * Merge server-info into show-messages and remove some not useful output.nicm2014-01-22
| |
| * Remove the barely-used and unnecessary command check() function.nicm2013-10-10
| |
| * Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
| * Fix error reporting for client commands by adding a flag toNicholas Marriott2013-03-24
| | | | | | | | | | cmd_find_client to tell it whether or not to show errors, sometimes it's needed and sometimes not.
| * Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott2012-07-11
| | | | | | | | | | | | add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
| * Clean up and simplify tmux command argument parsing.Nicholas Marriott2011-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | | | | | | time now I've configured emacs to make them displayed in really annoying colours...
| * Add a per-client log of status line messages displayed while that clientNicholas Marriott2009-11-18
| | | | | | | | exists. A new message-limit session option sets the maximum number of entries and a command, show-messages, shows the log (bound to ~ by default). This (and prompt history) might be better as a single global log but until there are global options it is easier for them to be per client.
* Remove the barely-used and unnecessary command check() function.Nicholas Marriott2013-08-21
|
* Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-02-23
| | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
* Fix error reporting for client commands by adding a flag to cmd_find_client toNicholas Marriott2013-02-22
| | | | tell it whether or not to show errors, sometimes it's needed and sometimes not.