aboutsummaryrefslogtreecommitdiff
path: root/status.c
Commit message (Collapse)AuthorAge
...
* Change from a per-session stack of buffers to one global stack which isNicholas Marriott2010-12-30
| | | | | | | much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
* Add a function to create window flags rather than doing the same thingNicholas Marriott2010-12-30
| | | | in two places. From Thomas Adam.
* Oops, these functions return a const char *, so make the local variableNicholas Marriott2010-12-11
| | | | const as well.
* Make the prompt history global for all clients which is much more useful ↵Nicholas Marriott2010-12-11
| | | | than per-client history.
* Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott2010-12-06
| | | | window. From Thomas Adam.
* Having a list of winlinks->alerts for each session is stupid, just storeNicholas Marriott2010-06-21
| | | | the alert flags directly in the winlink itself.
* Colour+attribute options for status line alerts, from Alex Alexander.Nicholas Marriott2010-05-14
|
* Don't accept keys with modifiers as input. Fixes crash reported by BrianNicholas Marriott2010-03-31
| | | | R Landy.
* Don't leak job command in #().Nicholas Marriott2010-03-27
|
* Dead functions, lint.Nicholas Marriott2010-03-22
|
* Calculate offset correctly, fixes incorrect offset and prevents crash whenNicholas Marriott2010-01-27
| | | | status-left is empty. From Micah Cowan.
* Actually use the copy made when no newline is found, from martynas@.Nicholas Marriott2010-01-26
|
* Add server options to completion as well.Nicholas Marriott2009-12-14
|
* 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...
* Eliminate duplicate code and ease the passage for server-wide options by addingNicholas Marriott2009-12-03
| | | | | | | a -w flag to set-option and show-options and making setw and showw aliases to set -w and show -w. Note: setw and showw are still there, but now aliases for set -w and show -w.
* Tidy up various bits of the paste code, make the data buffer char * and addNicholas Marriott2009-11-26
| | | | comments.
* Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | the rest to reduce lint output.
* Display UTF-8 properly in status line messages and prompt. Cursor handling isNicholas Marriott2009-11-20
| | | | still way off though.
* Remove oldest messages from log when limit is hit, not newest.Nicholas Marriott2009-11-20
|
* Get some brackets in the right place so ## works. Also fix a space in aNicholas Marriott2009-11-19
| | | | comment.
* Change status line drawing to create the window list in a separate screen andNicholas Marriott2009-11-19
| | | | | then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format.
* Two new options, window-status-format and window-status-current-format, whichNicholas Marriott2009-11-19
| | | | | | | | allow the format of each window in the status line window list to be controlled using similar # sequences as status-left/right. This diff also moves part of the way towards UTF-8 support in window names but it isn't quite there yet.
* Tidy up by breaking the # replacement code into a separate function, also add aNicholas Marriott2009-11-19
| | | | few comments.
* Don't interpret #() for display-message, it usually doesn't make sense and mayNicholas Marriott2009-11-19
| | | | leak commands.
* 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.
* Permit top-bit-set characters to be entered in the status line. They couldNicholas Marriott2009-11-17
| | | | | | | | | already be set from the shell and are just passed through when printing (so invisible characters or displaying on terminals with different character sets may cause problems). Note that entering UTF-8 may not work and in any case currently the status line cannot display it correctly (outside of status-left/status-right).
* Use timeout events for the identify and message timers.Nicholas Marriott2009-11-04
|
* Switch jobs over to use a bufferevent.Nicholas Marriott2009-11-04
|
* Unused (but assigned to) variable, found by lint.Nicholas Marriott2009-11-04
|
* Add a flag for jobs that shouldn't be freed after they've died and use it forNicholas Marriott2009-11-01
| | | | | | | 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 #().
* Rather than running status-left, status-right and window title #() with popenNicholas Marriott2009-10-10
| | | | | | | | | | | | | | | | | immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later.
* Add "grouped sessions" which have independent name, options, current window andNicholas Marriott2009-10-10
| | | | | | | | so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
* Remove PROMPT_HIDDEN code which is now unused.Nicholas Marriott2009-09-23
|
* Remove the internal tmux locking and instead detach each client and run theNicholas Marriott2009-09-23
| | | | | | | | | | | | | | command specified by a new option "lock-command" (by default "lock -np") in each client. This means each terminal has to be unlocked individually but simplifies the code and allows the system password to be used to unlock. Note that the set-password command is gone, so it will need to be removed from configuration files, and the -U command line flag has been removed. This is the third protocol version change so again it is best to stop the tmux server before upgrading.
* Regularise some fatal messages.Nicholas Marriott2009-09-20
|
* Permit options such as status-bg to be configured using the entire 256 colourNicholas Marriott2009-09-10
| | | | palette by setting "colour0" to "colour255".
* Give each paste buffer a size member instead of requiring them to beNicholas Marriott2009-09-07
| | | | zero-terminated.
* Permit embedded colour and attributes in status-left and status-right using newNicholas Marriott2009-09-07
| | | | #[] special characters, for example #[fg=red,bg=blue,blink].
* Add a transpose-chars command in edit mode (C-t in emacs mode only). From KalleNicholas Marriott2009-09-02
| | | | Olavi Niemitalo.
* Use "Password:" with no space for password prompts and don't display a *s forNicholas Marriott2009-09-01
| | | | | the password, like pretty much everything else. From martynas@ with minor tweaks by me.
* Add a new display-panes command, with two options (display-panes-colour andNicholas Marriott2009-08-31
| | | | | display-panes-time), which displays a visual indication of the number of each pane.
* Extend command-prompt with a -p option which is a comma-separated list of oneNicholas Marriott2009-08-19
| | | | | | | | | | | | | | | | | | or more prompts to present in order. The responses to the prompt are replaced in the template string: %% are replaced in order, so the first prompt replaces the first %%, the second replaces the second, and so on. In addition, %1 up to %9 are replaced with the responses to the first the ninth prompts The default template is "%1" so the response to the first prompt is processed as a command. Note that this changes the behaviour for %% so if there is only one prompt, only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'" should be changed to "neww -n '%1' 'ssh %1'". From Tiago Cunha.
* Add a "delete line" key when editing in the status line or the search up/downNicholas Marriott2009-08-18
| | | | prompt. C-u with emacs keys, d with vi.
* Switch the prompt code to return an empty string when the user enters noNicholas Marriott2009-08-13
| | | | | | | response and reserve NULL for an explicit cancel. Change all callbacks to treat them the same so no functional change. Also add cancel key bindings to emacs mode which were missing.
* Options to set the colours and attributes for status-left/-right. From ThomasNicholas Marriott2009-08-08
| | | | Adam, thanks.
* If colours are not supported by the terminal, try to emulate a colouredNicholas Marriott2009-08-05
| | | | | | | | background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.
* Plug some memory leaks.Nicholas Marriott2009-07-30
|
* Next step towards customisable mode keys: build each default table of keys intoNicholas Marriott2009-07-28
| | | | | | a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument).
* Change mode key bindings from big switches into a set of tables. Rather thanNicholas Marriott2009-07-27
| | | | | | | lumping them all together, split editing keys from those used in choice/more mode and those for copy/scroll mode. Tidier and clearer, and the first step towards customisable mode keys.
* Get rid of empty mode_key_free function.Nicholas Marriott2009-07-27
|