summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-string.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add xreallocarray and remove nmemb argument from xrealloc.nicm2014-10-081-10/+11
|
* Make tilde expansion in command strings work even if it isn't terminated by /.nicm2013-10-101-8/+23
|
* Add a command queue to standardize and simplify commands that call othernicm2013-03-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | 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.
* Simplify command string parsing with a helper function from Tiago Cunha.nicm2012-12-061-27/+28
|
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-16/+13
|
* Read ${X} environment variables in strings and $HOME from the globalnicm2010-12-131-15/+17
| | | | | environment rather than getenv, this allows them to be updated during the configuration file.
* have_arg matches buf so it is no longer necessary, spotted by Tim van dernicm2010-02-191-16/+4
| | | | Molen.
* Remove unnecessary comparison, pointed out by Tiago Cunha.nicm2010-01-311-3/+2
|
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-2/+2
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Get a u_char from the string, otherwise it isn't possible to enter \0377 as itnicm2009-11-261-7/+9
| | | | | | is mistaken for EOF (doh). Also drop an unused argument.
* Use home from struct passwd if HOME is empty as well as if it is NULL, and fixnicm2009-11-211-2/+2
| | | | a style nit. Both from Tiago Cunha.
* I made a complete horlicks of the last change, fix it so it doesn't either leadnicm2009-11-161-6/+2
| | | | to a double free or free the item after the end of the array.
* Rewrite a confusing loop when freeing the arg array on exit and move the checknicm2009-11-111-11/+10
| | | | | | | for argv being NULL, prompted by parfait via deraadt. Also fix some definite brokenness when assigning multiple environment variables in arguments (such as "X=1 Y=2").
* tabs are better; ok nicmderaadt2009-10-261-21/+21
|
* Infrastructure and commands to manage the environment for processes startednicm2009-08-081-14/+16
| | | | | | | | | | | | | | | within tmux. There is a global environment, copied from the external environment when the server is started and each sesssion 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.
* Add a terminal-overrides session option allowing individual terminfo(5) entriesnicm2009-08-031-1/+4
| | | | | | | | 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).
* Expand leading tildes in arguments, from Tiage Cunha.nicm2009-07-131-1/+43
|
* Fix two memory leaks when assigning shell variables in configurationnicm2009-07-081-1/+3
| | | | file/command prompt. From Tiago Cunha.
* strdup the input to putenv to avoid in one case passing a string that is laternicm2009-06-051-2/+2
| | | | | | freed and in the other const strings. looks sane to millert, ok ray
* Import tmux, a terminal multiplexor allowing (among other things) a singlenicm2009-06-011-0/+309
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti