summaryrefslogtreecommitdiffstats
path: root/screen-write.c
AgeCommit message (Collapse)Author
2021-01-17Look for libevent2 differently from libevent for platforms with both.Nicholas Marriott
2020-12-07Do not clear the wrapped flag on linefeeds if it is already set - thisnicm
does not appear to be what applications want. GitHub issue 2478 and 2414.
2020-11-09Remove some old debug logging.nicm
2020-07-21Fix show-buffer when run from inside tmux, GitHub issue 2314.nicm
2020-07-06Do not eliminate redundant clears, the code is wrong and doing itnicm
correctly wouldn't be worth it. GitHub issue 2298.
2020-06-18The redraw callback could be fired with a NULL pane if it updates whilenicm
in a mode, problem reported by Martin Vahlensieck.
2020-06-02Move the code to set up a padding cell into grid.c.nicm
2020-06-02Allow UTF-8 characters of width 0 to be stored, it is useful to be ablenicm
to put padding cells in as width 0.
2020-05-27Make padding cell a valid character.nicm
2020-05-25Fix definition of padding cells so they are not extended cells.nicm
2020-05-16Add screen write flags instead of individual bits and fix line lengthnicm
calculation with padding.
2020-05-16Add a customize mode where keys and options may be browsed and changed,nicm
includes adding a brief description of each option. Bound to "C" by default.
2020-05-16Do not hoke into struct window_pane from the tty code and instead setnicm
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.
2020-05-16Rename and tidy some stuff in struct tty_ctx.nicm
2020-05-16Copy mode search improvements:nicm
- Add styles for the search marking styles (copy-mode-match-style and copy-mode-current-match-style). - Show the current match (the one with the cursor on it) in a different style. - Copying without a selection will copy the current match if there is one.
2020-04-21Move the background colour to clear with (if any) up as well as the datanicm
when scrolling, redraw problem reported by sthen@.
2020-04-20Always start sync for output in panes that are not the active pane.nicm
2020-04-20Change how sync works to always send the end sequence after all outputnicm
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.
2020-04-18A resize can realloc so cannot cache the value of the list pointer.nicm
2020-04-18Reset background colour on scrolled line.nicm
2020-04-18There is no point in keeping a bunch of different text buffers for eachnicm
line when writing, we only need one as big as the line width - there can't be any more text than that since newer will overwrite older.
2020-04-18Add formats for pane written/skipped bytes for debugging.nicm
2020-04-17There is no point allocating a new item and putting it on the list whennicm
the whole line is cleared line, there is never any point in doing it more than once. Instead store the background colour alone.
2020-04-16Return to sending sync around clears.nicm
2020-04-16Do not need to set up a tty context for clearing lines now.nicm
2020-04-16Collect up line clears like text within the available data so we don'tnicm
need to flush everything.
2020-04-16Log what caused a flush for better visibility on what could be improved.nicm
2020-04-16Only start and stop sync for operations like clear and scroll wherenicm
there is a better chance more data will be on the way.
2020-04-16Add support for the iTerm2 sychronized updates escape sequence whichnicm
drastically reduces flickering.
2020-04-15Use mode-style for selected items, like choose modes. GitHub issue 2166.nicm
2019-11-28Parse out DA features.nicm
2019-09-24Some minor performance improvements - most notably, don't search thenicm
input state table if the next character matches the same state as before.
2019-09-24Couple of bits of minor cleanup.nicm
2019-08-05Add support for the SD (scroll down) escape sequence, GitHub issue 1861.nicm
2019-07-08Use the clear history function for the 3J sequence rather than doing it ↵nicm
manually.
2019-07-06Correctly clear underscore colour in grid_get_cell1, also fix structnicm
grid_cell to avoid padding. Fixes increased memory use reported by Suraj N Kurapati.
2019-06-27Add support for underscore colours with Setulc capability, mostly fromnicm
Kai Moschcau.
2019-05-28Allow menu items to be disabled by putting a - at the start of theirnicm
name, rather than just including #[dim] which still allowed them to be chosen.
2019-05-10Add a function to draw a simple menu onto a screen.nicm
2019-04-18Pass target client and session to load_cfg from source-file so formatsnicm
work. Reported by Thomas Sattler.
2019-04-03screen_write_fast_copy can no longer assume the target screen is defaultnicm
(it isn't for the pane status lines).
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-14Add a wrapper (struct style) around styles rather than using thenicm
grid_cell directly. There will be some non-cell members soon.
2019-03-12DECRC and DECSC apparently need to preserve origin mode as well, basednicm
on a fix from Marc Reisner.
2019-03-12Fix HPA in origin mode.nicm
2019-03-12Fix wrapping after origin mode change.nicm
2019-03-12Add support for origin mode (DECOM, SM/RM ?6), from Marc Reisner.nicm
2018-11-13Initialize context property in alignment test handler function.nicm
2018-11-12Allow style #[] in mode formats.nicm
2018-10-31Reset all flags in screen_write_reset, reported by Benjamin Poirier.nicm