summaryrefslogtreecommitdiffstats
path: root/status.c
AgeCommit message (Collapse)Author
2012-03-17Check event_initialized before event_del if event may not have been setNicholas Marriott
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-04Add A and I keys for vi status line editing.Nicholas Marriott
2012-03-03The wlmouse offset should be part of the client, not the server. FromNicholas Marriott
Ailin Nemui.
2012-01-29Add an option to move the status line to the top of the screen,Nicholas Marriott
requested by many.
2012-01-26Terminate strftime buffer properly even if a really long format stringNicholas Marriott
is given, from Tiago Cunha.
2012-01-26Fix memory leak in error path, from Tiago Cunha.Nicholas Marriott
2012-01-20Add some trivial additional status line attributes from jwcxz at usersNicholas Marriott
dot sourceforge dot net.
2012-01-20Add space movement keys for vi mode in the status line from Ben Boeckel.Nicholas Marriott
2011-12-01Make M-f and M-b work the same at the command prompt as in copy mode,Nicholas Marriott
pointed out by Romain Francoise.
2011-11-15Add word movement and editing command for command prompt editing, fromNicholas Marriott
Ben Boeckel.
2011-11-15Make window_pane_index work the same as window_index, from Ben Boeckel.Nicholas Marriott
2011-11-05Option to change status line (message) background when using vi keys andNicholas Marriott
in command mode. From Ben Boeckel.
2011-08-20Fix a couple of memory leaks, from marcel partap.Nicholas Marriott
2011-07-08Make confirm-before prompt customizable with -p option likeNicholas Marriott
command-prompt. Also move responsibility for calling status_replace into status_prompt_{set,update} and add #W and #P to the default kill-window and kill-pane prompts. By Tiago Cunha.
2011-07-02Allow the initial context on prompts to be set with the new -I option toNicholas Marriott
command-prompt. From Tiago Cunha.
2011-04-29Only redraw the status line on command update, not the entire clientNicholas Marriott
(big DOH).
2011-04-24Provide #h for short hostname (no domain) from Michal Mazurek.Nicholas Marriott
2011-04-18Add an option (mouse-select-window) which allows the mouse to be used byNicholas Marriott
clicking on the status line, written by hsim at gmx dot li.
2011-03-29Change -t on display-message to be target-pane for the #[A-Z]Nicholas Marriott
replacements and add -c as target-client.
2011-01-26Simplify the way jobs work and drop the persist type, so all jobs areNicholas Marriott
fire-and-forget. Status jobs now managed with two trees of output (new and old), rather than storing the output in the jobs themselves. When the status line is processed any jobs which don't appear in the new tree are started and the output from the old tree displayed. When a job finishes it updates the new tree with its output and that is used for any subsequent redraws. When the status interval expires, the new tree is moved to the old so that all jobs are run again. This fixes the "#(echo %H:%M:%S)" problem which would lead to thousands of identical persistent jobs and high memory use (this can still be achieved by adding "sleep 30" but that is much less likely to happen by accident).
2011-01-03Handle a # at the end of a replacement string (such as status-left)Nicholas Marriott
correctly. Found by Thomas Adam.
2011-01-01Move the user-visible parts of all options (names, types, limit, defaultNicholas Marriott
values) together into one set of tables in options-table.c. Also clean up and simplify cmd-set-options.c and move a common print function into option-table.c.
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
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.
2010-12-30Add a function to create window flags rather than doing the same thingNicholas Marriott
in two places. From Thomas Adam.
2010-12-11Oops, these functions return a const char *, so make the local variableNicholas Marriott
const as well.
2010-12-11Make the prompt history global for all clients which is much more useful ↵Nicholas Marriott
than per-client history.
2010-12-06Add an option to alert (monitor) for silence (lack of activity) in aNicholas Marriott
window. From Thomas Adam.
2010-06-21Having a list of winlinks->alerts for each session is stupid, just storeNicholas Marriott
the alert flags directly in the winlink itself.
2010-05-14Colour+attribute options for status line alerts, from Alex Alexander.Nicholas Marriott
2010-03-31Don't accept keys with modifiers as input. Fixes crash reported by BrianNicholas Marriott
R Landy.
2010-03-27Don't leak job command in #().Nicholas Marriott
2010-03-22Dead functions, lint.Nicholas Marriott
2010-01-27Calculate offset correctly, fixes incorrect offset and prevents crash whenNicholas Marriott
status-left is empty. From Micah Cowan.
2010-01-26Actually use the copy made when no newline is found, from martynas@.Nicholas Marriott
2009-12-14Add server options to completion as well.Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...
2009-12-03Eliminate duplicate code and ease the passage for server-wide options by addingNicholas Marriott
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.
2009-11-26Tidy up various bits of the paste code, make the data buffer char * and addNicholas Marriott
comments.
2009-11-26Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott
the rest to reduce lint output.
2009-11-20Display UTF-8 properly in status line messages and prompt. Cursor handling isNicholas Marriott
still way off though.
2009-11-20Remove oldest messages from log when limit is hit, not newest.Nicholas Marriott
2009-11-19Get some brackets in the right place so ## works. Also fix a space in aNicholas Marriott
comment.
2009-11-19Change status line drawing to create the window list in a separate screen andNicholas Marriott
then copy it into the status line screen. This allows UTF-8 in window names and fixes some problems with #[] in window-status-format.
2009-11-19Two new options, window-status-format and window-status-current-format, whichNicholas Marriott
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.
2009-11-19Tidy up by breaking the # replacement code into a separate function, also add aNicholas Marriott
few comments.
2009-11-19Don't interpret #() for display-message, it usually doesn't make sense and mayNicholas Marriott
leak commands.
2009-11-18Add a per-client log of status line messages displayed while that clientNicholas Marriott
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.
2009-11-17Permit top-bit-set characters to be entered in the status line. They couldNicholas Marriott
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).
2009-11-04Use timeout events for the identify and message timers.Nicholas Marriott
2009-11-04Switch jobs over to use a bufferevent.Nicholas Marriott