aboutsummaryrefslogtreecommitdiff
path: root/status.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 188:Tiago Cunha2009-07-28
| | | | | Get rid of empty mode_key_free function.
* Sync OpenBSD patchset 187:Tiago Cunha2009-07-28
| | | | | | | | Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi). From Kalle Olavi Niemitalo.
* Sync OpenBSD patchset 183:Tiago Cunha2009-07-28
| | | | | | | | Calculate the space available for the prompt buffer and the cursor position correctly, and make it work when the screen is not wide enough. Noticed by Kalle Olavi Niemitalo.
* Sync OpenBSD patchset 153:Tiago Cunha2009-07-22
| | | | | | Remove a couple of unused functions and fix a type ("FALLTHOUGH"), found by lint.
* Sync OpenBSD patchset 147:Tiago Cunha2009-07-20
| | | | | | Add a status-justify option to allow the window list in the status line to be positioned at the left, centre, or right.
* Sync OpenBSD patchset 146:Tiago Cunha2009-07-20
| | | | | | | New options, window-status-current-{fg,bg,attr}, to set the fg, bg and 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 theTiago Cunha2009-07-17
| | | | | | | | status line (bound to "i" by default). - Add support for including the window index, pane index, and window name in status-left, or status-right. - Bump protocol version.
* 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
* Remove some duplicate code that was causing the status line to be redrawn evenNicholas Marriott2009-07-17
| | | | | 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-15
| | | | | | 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-15
| | | | | redraw it as to draw the entire screen, just skip all lines but the last.
* Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-14
| | | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
* $Id$.Nicholas Marriott2009-07-01
|
* 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.
* Whitespace and more syncing.Nicholas Marriott2009-06-25
|
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* If the prompt is hidden or a password is sent with -U, zero it before freeingNicholas Marriott2009-06-25
| | | | | it.
* New session option, status-utf8, to control the interpretation of top-bit-setNicholas Marriott2009-06-25
| | | | | | 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-25
| | | | | | | 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.
* Don't show real character under cursor when hidden. Doh.Nicholas Marriott2009-05-29
|
* - New window option monitor-content to search for a string in a window, andTiago Cunha2009-05-19
| | | | | | | | | highlight the status line if it matches. - To make this possible, the function cmd_find_window_search from cmd-find-window.c had to be moved to window.c and renamed window_pane_search. - While there use three new functions in server.c to check for bell, activity, and content, to avoid too much nesting.
* Move dist.mk to tools/.Nicholas Marriott2009-05-17
|
* Keys in status line (p in vi mode, M-y in emacs) to paste the first line of ↵Nicholas Marriott2009-05-14
| | | | the upper paste buffer. Suggested by Dan Colish.
* Everything supported has working vsnprintf.Nicholas Marriott2009-05-13
|
* Rename all feature flags to HAVE_* and move out of makefiles into a configureNicholas Marriott2009-05-13
| | | | | | | | | script which must be run before building. Still two makefiles but they are a hell of a lot simpler. HAVE_* also will make it easier to move to $buildsystem if necessary later.
* Convert hidden flag to a full flags word for the status line and add a flag toNicholas Marriott2009-04-27
| | | | | | accept after only one key. Use this so don't need to press enter after y/n for confirm-before.
* Avoid using the prompt history when the server is locked, and prevent anyTiago Cunha2009-04-27
| | | | | input entered from being added to the client's prompt history. From nicm.
* Redo mode keys slightly more cleanly and apply them to command prompt ↵Nicholas Marriott2009-02-13
| | | | editing. vi or emacs mode is controlled by the session option status-keys.
* Move status prompt/message init and teardown into status.c.Nicholas Marriott2009-02-13
|
* Move sx,sy into tty rather than client.Nicholas Marriott2009-02-11
|
* Don't redraw status line unless it has actually changed. Stops extraneousNicholas Marriott2009-02-10
| | | | | | updates between clock/#() changes and doesn't require manual status-interval 0 when no updates are occuring.
* Support commands with right parenthesis. From nicm and me.Tiago Cunha2009-02-01
|
* Set colour of window entry in status line based on window options.Nicholas Marriott2009-01-30
|
* Support #(command) in status-left, and status-right.Tiago Cunha2009-01-29
|
* Allow status, mode and message attributes to be changed by three new ↵Nicholas Marriott2009-01-27
| | | | | | | options: status-attr, mode-attr, message-attr. A comma-separataed list is accepted containing: bright, dim, underscore, blink, reverse, hidden, italics, for example: set -g status-attr bright,blink From Josh Elsasser, thanks!
* Use reverse so status line etc works in terminals w/o colour.Nicholas Marriott2009-01-23
|
* Fix various silly problems with status line off.Nicholas Marriott2009-01-19
|
* Use reverse rather than background which doesn't show up when terminal doesn'tNicholas Marriott2009-01-19
| | | | | support colours.
* Tidy a few warnings.Nicholas Marriott2009-01-17
|
* Support #S #H in status-left/right.Nicholas Marriott2009-01-15
|
* Multiple window splitting.Nicholas Marriott2009-01-14
|
* Make the window pane code handle panes of different sizes, and add a -l and ↵Nicholas Marriott2009-01-12
| | | | -p arguments to split-window to specify the new window size in lines or as a percentage.
* Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott2009-01-11
| | | | still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
* Server locking. set-password and lock-server commands, plus automatic locking.Nicholas Marriott2009-01-11
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Give up the farce of caring about any keys aside from the ones in the screen ↵Nicholas Marriott2009-01-08
| | | | termcap and the ones termcap doesn't handle that we hardcode manually.
* +comment.Nicholas Marriott2009-01-07
|
* Stray debug message.Nicholas Marriott2009-01-06
|