aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
Commit message (Collapse)AuthorAge
* Add a menu when a popup is present (mouse only for now).nicm2021-08-13
|
* Break the colour palette into a struct rather than just a single arraynicm2021-08-11
| | | | | | and use that to support the OSC palette-setting sequences in popups. Also add a pane-colours array option to specify the defaults. GitHub issue 2815.
* Return to applying pane-border-style to the area outside panes, GitHubnicm2021-08-11
| | | | issue 2816.
* Do not freeze output in panes when a popup is open, let them continue tonicm2021-08-05
| | | | redraw. From Anindya Mukherjee .
* Move mode set/reset after sync so cursor doesn't flicker, from Avinicm2021-04-13
| | | | Halachmi.
* Send Unicode directional isolate characters around horizontal panenicm2021-02-05
| | | | | | | | borders if the terminal support UTF-8 and an extension terminfo(5) capability "Bidi" is present. On terminals with BiDi support (ie, VTE) this seems to be enough to display right-to-left text acceptably enough to be usable (with some caveats about the mouse position). Requested by and with help from Mahmoud Elagdar in GitHub issue 2425.
* Do not include the status line size when working out the character fornicm2020-12-07
| | | | the pane status line. GitHub issue 2493.
* Correct checks for window borders.nicm2020-07-22
|
* Check for no pane border status line separately from top/bottom.nicm2020-06-27
|
* Correctly redraw pane border bottom line when the status line is on andnicm2020-06-23
| | | | at the bottom, reported by Kaushal Modi.
* Add an option to set the pane border lines style from a choice of singlenicm2020-05-16
| | | | | | lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the pane numbers). Lines that won't work on a non-UTF-8 terminal are translated back into ACS when they are output.
* Add a client flag 'active-pane' which stores the active pane in thenicm2020-05-16
| | | | | | | | | client and allows it to be changed independently from the real active pane stored in the window. This is can be used with session groups which allow an independent current window (although it would be nice to have a flag for this too and remove session groups). The client active pane is only really useful interactively, many things (hooks, window-style, zooming) still use the window active pane.
* Do not hoke into struct window_pane from the tty code and instead setnicm2020-05-16
| | | | | | | everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
* Drop having a separate type for style options and make them all strings,nicm2020-05-16
| | | | | | | | | | | | | | | | | which allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
* Do not redraw or update mode if nothing has changed.nicm2020-05-16
|
* Change how sync works to always send the end sequence after all outputnicm2020-04-20
| | | | | is done when we are returning to the event loop (since we always move the cursor at that point). Also a man fix from jmc.
* The PANE_REDRAW flag bit might be needed by other panes so we can'tnicm2020-04-18
| | | | | | | clear it on the first redraw, and it can't be set when we are finished or they would be redrawn again, so if the redraw is deferred for a client, copy the redraw flag into a separate set of bits just for that client.
* Bring back previons fix to only redraw panes that need it after a redrawnicm2020-04-18
| | | | | is deferred, but clear the pane flags when they are actually redrawn rather than every time.
* Add a flag to protect against nested syncs and add some extra logging tonicm2020-04-18
| | | | redrawing.
* Revert previous, there is still a problem.nicm2020-04-18
|
* When a redraw is deferred because the terminal hasn't finished readingnicm2020-04-18
| | | | | | | | | the data from the last one, other panes could update while waiting, so we set the flag to redraw them all when the new redraw actually happened. But this means a lot of redrawing panes unnecessarily if they haven't changed - so instead set a flag to say "at least one pane needs to be redrawed" then look at the invidual pane flags to see which ones need it.
* Add support for the iTerm2 sychronized updates escape sequence whichnicm2020-04-16
| | | | drastically reduces flickering.
* Add support for overlay popup boxes to show text or output temporarilynicm2020-03-24
| | | | | above the normal layout. These work similarly to menus and are created with the display-popup command.
* Mark pane status line jobs with FORMAT_STATUS also so it redraws whennicm2019-07-24
| | | | they finish, GitHub issue 1852.
* Add #define for the pane status line option position numbers.nicm2019-06-26
|
* Always redraw overlay if it is on (so status line doesn't redraw over it).nicm2019-05-26
|
* Add a flag to redraw only the overlay, and remove the overlay on resize.nicm2019-05-08
|
* Move around the display-panes identify code to make it a bit morenicm2019-05-07
| | | | | generic and hide the display-panes specific bits into cmd-display-panes.c.
* Do not let the size of the pane status screen go negative.nicm2019-04-17
|
* Extend the #[] style syntax and use that together with previous formatnicm2019-03-18
| | | | | | | | | | | | | | | | | | | | 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.
* Use a pointer for the active screen in the status line instead ofnicm2019-03-16
| | | | copying them around all the time.
* Tidy and rename some bits of status line code.nicm2019-03-16
|
* DECRC and DECSC apparently need to preserve origin mode as well, basednicm2019-03-12
| | | | on a fix from Marc Reisner.
* Support for windows larger than visible on the attached client. This hasnicm2018-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add a flag to force redrawing of the status line even if the contentnicm2018-08-19
| | | | hasn't changed, needed for resizing.
* Add a client redraw-window flag instead of the redraw-all flag and fornicm2018-08-19
| | | | all just use the three flags together (window, borders, status).
* Some tidying and helper functions.nicm2018-08-18
|
* Add size to arguments struct too.nicm2018-08-14
|
* Some tidying, use a struct for arguments (there will be more later) andnicm2018-08-14
| | | | add a helper function.
* Add struct status_line to hold status line members of struct client, notnicm2018-02-05
| | | | used yet but will be soon. From Thomas Adam.
* Fix memory leak in screen_redraw_make_pane_status.nicm2017-12-22
|
* Infrastructure for drawing status lines of more than one line in height,nicm2017-10-16
| | | | still only one is allowed but this lets tmux draw bigger ones.
* In order that people can use formats like #D in #() in the status linenicm2017-05-01
| | | | | | | | | | | | | | 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.
* Give each client a name. This defaults to the tty name as before butnicm2017-04-05
| | | | | | | 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.
* Add a helper to store a cell, and some tidying.nicm2017-02-08
|
* Add a window or pane id "tag" to each format tree and use it to separatenicm2017-02-03
| | | | | | 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.
* Add support for the OSC 4 and OSC 104 palette setting escape sequences,nicm2017-01-07
| | | | from S Gilles.
* Add support for BCE (background colour erase). This makes various escapenicm2016-10-13
| | | | | | | | | | | | 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.
* Compare to see if pane status line has actually changed, not just size, andnicm2016-10-12
| | | | do not draw if pane is not visible.
* Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-10
|