aboutsummaryrefslogtreecommitdiff
path: root/status.c
Commit message (Collapse)AuthorAge
...
* Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi).Nicholas Marriott2009-07-27
| | | | From Kalle Olavi Niemitalo.
* Calculate the space available for the prompt buffer and the cursor positionNicholas Marriott2009-07-26
| | | | | | correctly, and make it work when the screen is not wide enough. Noticed by Kalle Olavi Niemitalo.
* Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found byNicholas Marriott2009-07-21
| | | | lint.
* Add a status-justify option to allow the window list in the status line to beNicholas Marriott2009-07-20
| | | | positioned at the left, centre, or right.
* New options, window-status-current-{fg,bg,attr}, to set the fg, bg andNicholas Marriott2009-07-20
| | | | | attributes with which the current window is shown in the status line. From Johan Friis, thanks.
* - New command display-message (alias display) to display a message in theNicholas Marriott2009-07-17
| | | | | | | | | | status line (bound to "i" and displays the current window and time by default). The same substitutions are applied as for status-left/right. - Add support for including the window index (#I), pane index (#P) and window name (#W) in the message, and status-left or status-right. - Bump protocol version. From Tiago Cunha, thanks!
* Memory could be leaked if a second prompt or message appeared while another wasNicholas Marriott2009-07-17
| | | | | | | | | | | still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual prompt callbacks). Also make both messages and prompts clear any existing when a new is set. In addition, the screen could be modified while the prompt is there, restore the redraw-entire-screen behaviour on prompt clear; add a comment as a reminder.
* Remove some duplicate code that was causing the status line to be redrawn evenNicholas Marriott2009-07-16
| | | | when it hadn't changed.
* Make status_message_set a variadic printf-like function. No functional change -Nicholas Marriott2009-07-15
| | | | helpful for a couple of things coming soon.
* Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bitNicholas Marriott2009-07-15
| | | | | | annoying and it is only use for iterating, so use a sentinel to mark the end of each array instead. Different fix for a problem pointed out by Kalle Olavi Niemitalo.
* For some reason when clearing status/message it was redrawing the entire clientNicholas Marriott2009-07-14
| | | | | not just the status line. Changing this also revealed the check for the status line was incorrect when drawing the pane.
* Instead of faking up a status line in status_redraw, use the same code toNicholas Marriott2009-07-14
| | | | | | redraw it as to draw the entire screen, just skip all lines but the last. This makes horizontal split redraw properly when the status line is off.
* Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-12
| | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
* Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott2009-06-26
| | | | | done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
* If the prompt is hidden or a password is sent with -U, zero it before freeingNicholas Marriott2009-06-04
| | | | it.
* New session option, status-utf8, to control the interpretation of top-bit-setNicholas Marriott2009-06-03
| | | | | characters in status-left and status-right (if on, they are treated as UTF-8; otherwise passed through).
* Add a UTF-8 aware string length function and make UTF-8 inNicholas Marriott2009-06-03
| | | | | | status-left/status-right work properly. At the moment any top-bit-set characters are assumed to be UTF-8: a status-utf8 option to configure this will come shortly.
* Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
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