summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/format.c
AgeCommit message (Collapse)Author
2015-01-11correctly use HOST_NAME_MAX.Theo de Raadt
Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
2014-12-09Add pane_dead_status for exit status of dead panes.Nicholas Marriott
2014-12-02Permit option values to be used in formats.Nicholas Marriott
2014-12-01Check ZOOMED flag on window.Nicholas Marriott
2014-11-08Empty strings should be false too for #{?}, from Marc Finet.Nicholas Marriott
2014-10-25Add pane_input_off format, from Anish R Athalye.Nicholas Marriott
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.Nicholas Marriott
2014-09-08Add window_last_flag and window_zoomed_flag. From John Morrissey.Nicholas Marriott
2014-08-09Remove support for the continuous reporting "any" mouse mode which neverNicholas Marriott
really worked properly and is rarely used.
2014-05-27Add some formats for pane bounds.Nicholas Marriott
2014-05-13If multiple arguments are given to new-session, new-window,Nicholas Marriott
split-window, respawn-window or respawn-pane, pass them directly to execvp() to help avoid quoting problems. One argument still goes to "sh -c" like before. Requested by many over the years. Patch from J Raynor.
2014-05-13Add support for named buffers. If you don't name a buffer, things workNicholas Marriott
much as before - buffers are automatically named "buffer0000", "buffer0001" and so on and ordered as a stack. Buffers can be named explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b buffer0000 -n foo"). If buffers are named explicitly, they are not deleted when buffer-limit is reached. Diff from J Raynor.
2014-04-17Add some UTF-8 utility functions and use them to prevent the width limitNicholas Marriott
on formats from splitting UTF-8 characters improperly.
2014-04-17Remove the monitor-content option and associated bits and bobs. It'sNicholas Marriott
never worked very well. If there is a big demand for it to return, will consider better ways to do it.
2014-04-02Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also makeNicholas Marriott
buffer_sample bigger to let it trim at window right edge.
2014-03-31Make session_attached a count and add session_many_attached flag.Nicholas Marriott
2013-11-24Replace ## by # in format.Nicholas Marriott
2013-10-11And get it right this time... don't leak if it is an empty string either.Nicholas Marriott
2013-10-11Don't free the pane name by accident.Nicholas Marriott
2013-10-10Fix leak in format_get_command.Nicholas Marriott
2013-10-10Remove the KERN_PROC_CWD the proc_current_path format (which is the onlyNicholas Marriott
thing that uses it now).
2013-10-10Use format_get_command() and some spacing tweaks.Nicholas Marriott
2013-10-10Alter how tmux handles the working directory to internally use fileNicholas Marriott
descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
2013-10-10First period not last for host_short, from Michael Scholz.Nicholas Marriott
2013-10-10Add automatic-rename-format option allowing automatic rename to useNicholas Marriott
something other than pane_current_command.
2013-10-10Allow nested format expansion.Nicholas Marriott
2013-10-10Add length limit operator for formats.Nicholas Marriott
2013-10-10Add formats for window flags.Nicholas Marriott
2013-10-10Don't leak formats if they are added multiple times.Nicholas Marriott
2013-10-10Don't add client formats when they are NULL.Nicholas Marriott
2013-07-05Add pane_synchronized format, from Romain Francoise.Nicholas Marriott
2013-05-31Add host_short format, from Tiago Cunha.Nicholas Marriott
2013-04-17(long long) and %lld for time_t outputTheo de Raadt
ok nicm
2013-03-25Include prefix on ids, from George Nachman.Nicholas Marriott
2013-03-25Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott
to use it, extended from a diff from George Nachman.
2013-03-25Do not leak command in formats, from Romain Francoise.Nicholas Marriott
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
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.
2013-03-24Add pane_tabs format to format_window_pane based on code from GeorgeNicholas Marriott
Nachman.
2013-03-24Whoops fix build.Nicholas Marriott
2013-03-24Add pane_current_command format.Nicholas Marriott
2013-03-22Add a load of miscellaneous pane formats, from George Nachman.Nicholas Marriott
2013-03-22Add client_session and client_last_session formats.Nicholas Marriott
2013-03-21Add a format client_prefix which is 1 if prefix key has beenNicholas Marriott
pressed, used for example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
2013-03-21Allow formats in status options.Nicholas Marriott
2013-02-05Don't set some string formats if the string is NULL.Nicholas Marriott
2013-01-18Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott
UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
2012-09-24Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott
working directory (like current process). From Marcel Partap.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-05-22Switch all of the various choose- and list- commands over to the formatNicholas Marriott
infrastructure, from Thomas Adam.
2012-04-01Add pane_current_path format, suggested by Mikolaj Kucharski.Nicholas Marriott