summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
AgeCommit message (Collapse)Author
2019-07-24Mark pane status line jobs with FORMAT_STATUS also so it redraws whennicm
they finish, GitHub issue 1852.
2019-06-26Add #define for the pane status line option position numbers.nicm
2019-05-26Always redraw overlay if it is on (so status line doesn't redraw over it).nicm
2019-05-08Add a flag to redraw only the overlay, and remove the overlay on resize.nicm
2019-05-07Move around the display-panes identify code to make it a bit morenicm
generic and hide the display-panes specific bits into cmd-display-panes.c.
2019-04-17Do not let the size of the pane status screen go negative.nicm
2019-03-18Extend the #[] style syntax and use that together with previous formatnicm
changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
2019-03-16Use a pointer for the active screen in the status line instead ofnicm
copying them around all the time.
2019-03-16Tidy and rename some bits of status line code.nicm
2019-03-12DECRC and DECSC apparently need to preserve origin mode as well, basednicm
on a fix from Marc Reisner.
2018-10-18Support for windows larger than visible on the attached client. This hasnicm
been a limitation for a long time. There are two new options, window-size and default-size, and a new command, resize-window. The force-width and force-height options and the session_width and session_height formats have been removed. The new window-size option tells tmux how to work out the size of windows: largest means it picks the size of the largest session, smallest the smallest session (similar to the old behaviour) and manual means that it does not automatically resize windows. The default is currently largest but this may change. aggressive-resize modifies the choice of session for largest and smallest as it did before. If a window is in a session attached to a client that is too small, only part of the window is shown. tmux attempts to keep the cursor visible, so the part of the window displayed is changed as the cursor moves (with a small delay, to try and avoid excess redrawing when applications redraw status lines or similar that are not currently visible). The offset of the visible portion of the window is shown in status-right. Drawing windows which are larger than the client is not as efficient as those which fit, particularly when the cursor moves, so it is recommended to avoid using this on slow machines or networks (set window-size to smallest or manual). The resize-window command can be used to resize a window manually. If it is used, the window-size option is automatically set to manual for the window (undo this with "setw -u window-size"). resize-window works in a similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and -A flags. -a sets the window to the size of the smallest client (what it would be if window-size was smallest) and -A the largest. For the same behaviour as force-width or force-height, use resize-window -x or -y, and "setw -u window-size" to revert to automatic sizing.. If the global window-size option is set to manual, the default-size option is used for new windows. If -x or -y is used with new-session, that sets the default-size option for the new session. The maximum size of a window is 10000x10000. But expect applications to complain and much higher memory use if making a window excessively big. The minimum size is the size required for the current layout including borders. The refresh-client command can be used to pan around a window, -U -D -L -R moves up, down, left or right and -c returns to automatic cursor tracking. The position is reset when the current window is changed.
2018-08-19Add a flag to force redrawing of the status line even if the contentnicm
hasn't changed, needed for resizing.
2018-08-19Add a client redraw-window flag instead of the redraw-all flag and fornicm
all just use the three flags together (window, borders, status).
2018-08-18Some tidying and helper functions.nicm
2018-08-14Add size to arguments struct too.nicm
2018-08-14Some tidying, use a struct for arguments (there will be more later) andnicm
add a helper function.
2018-02-05Add struct status_line to hold status line members of struct client, notnicm
used yet but will be soon. From Thomas Adam.
2017-12-22Fix memory leak in screen_redraw_make_pane_status.nicm
2017-10-16Infrastructure for drawing status lines of more than one line in height,nicm
still only one is allowed but this lets tmux draw bigger ones.
2017-05-01In order that people can use formats like #D in #() in the status linenicm
and not have to wait for an update when they change pane, we allow commands to run more than once a second if the expanded form changes. Unfortunately this can mean them being run far too often (pretty much continually) when multiple clients exist, because some formats (including #D) will always differ between clients. To avoid this, give each client its own tree of jobs which means that the same command will be different instances for each client - similar to how we have the tag to separate commands for different panes. GitHub issue 889; test case reported by Paul Johnson.
2017-04-05Give each client a name. This defaults to the tty name as before butnicm
falls back to an alternative if the tty name is not available. This is clearer than overloading the client ttyname member and allows us to remove the path stored in the tty struct, it should always be the same as the client.
2017-02-08Add a helper to store a cell, and some tidying.nicm
2017-02-03Add a window or pane id "tag" to each format tree and use it to separatenicm
jobs, this means that if the same job is used for different windows or panes (for example in pane-border-format), it will be run separately for each pane.
2017-01-07Add support for the OSC 4 and OSC 104 palette setting escape sequences,nicm
from S Gilles.
2016-10-13Add support for BCE (background colour erase). This makes various escapenicm
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank cells using the current background colour rather than the default colour. On modern systems BCE doesn't really have many benefits, but most other terminals now support it, some (lazy) applications rely on it, and it is not hard to include now that we have pane background colours anyway. Mostly written by Sean Haugh.
2016-10-12Compare to see if pane status line has actually changed, not just size, andnicm
do not draw if pane is not visible.
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-10-09Make the CLIENT_STATUS flag imply that pane status lines are redrawn ifnicm
they are enabled and break the actual screen generation code into a separate function. Fixes problems reported by Romain Francoise.
2016-07-15Instead of representing colours in several different forms with variousnicm
cell flags, convert to use an int with flags marking 256 or RGB colours in the top byte (except in cells, which we don't want to make any bigger). From Brad Town.
2016-04-29Add option to include status text in the pane borders. Ifnicm
pane-border-status is set to "top" or "bottom" (rather than "off"), every pane has a permanent top or bottom border containing the text from pane-border-format. Based on a diff sent long ago by Jonathan Slenders, mostly rewritten and simplified by me.
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-15Make the marked pane a cmd_find_state.nicm
2015-10-27Move struct options into options.c.nicm
2015-06-04Add support for a single "marked pane". There is one marked pane in thenicm
server at a time; it may be toggled or cleared with select-pane -m and -M (the border is highlighted). A new target '~' or '{marked}' specifies the marked pane to commands and it is the default target for the swap-pane and join-pane -s flag (this makes them much simpler to use - mark the source pane and then change to the target pane to run swapp or joinp).
2015-05-07If status line is at the top, the offset needs to be adjusted whennicm
drawing pane numbers. Based on a diff from John O'Meara.
2015-04-19Support setting the default window and pane background colours (windownicm
and active pane via window-style and window-active-style options, an individual pane by a new select-pane -P flag). From J Raynor.
2015-02-06Move pane border options to window options rather than session, from Marc Finet.nicm
2014-11-14Label windows which are smaller than expected with a reason.nicm
2014-03-31Having three *clock* files is ridiculous, remove clock.c.nicm
2014-01-31Break up and simplify screen_redraw_screen.nicm
2014-01-28Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.
2013-03-25When only two panes in a window, only draw half the separating line asNicholas Marriott
active.
2013-03-25Do not redraw panes if invisible.Nicholas Marriott
2012-05-23Use a predefined structure for not-space cells used to set attributes.Nicholas Marriott
2012-01-29Add an option to move the status line to the top of the screen,Nicholas Marriott
requested by many.
2012-01-21Show pane size in top right of display panes mode.Nicholas Marriott
2011-11-15Make window_pane_index work the same as window_index, from Ben Boeckel.Nicholas Marriott
2011-07-08Do not continue to send data to suspended/locked clients or there willNicholas Marriott
be a huge rush of it after they are resumed/unlocked. The main output path was fine but status line updates and the terminal state reset code were missed.
2010-09-11Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupidNicholas Marriott
terminals (I'm looking at you, putty) which disable the vt100 ACS mode switching sequences in UTF-8 mode. Also on terminals without ACS at all, use ASCII equivalents where obvious.
2010-02-04Option to display the active pane in a different colour with the display-panesNicholas Marriott
command. From Paul Hoffman, thanks.