summaryrefslogtreecommitdiffstats
path: root/screen-write.c
AgeCommit message (Collapse)Author
2021-10-26Do not allow inline styles to replace mode-style for the selected item,nicm
from Alexis Hildebrandt in GitHub issue 2946.
2021-10-25Add -s and -S to display-popup to set popup and border style, fromnicm
Alexis Hildebrandt in GitHub issue 2931.
2021-10-25Instead of setting the popup default colours in the draw callback, setnicm
it up in popup_display and follow the same routine as panes in the draw and init_ctx callbacks - use the palette if the option value is default. Allows application-set fg and bg to work in panes again.
2021-10-20Add -T to set a popup title, from Alexis Hildebrandt in GitHub issue 2941.nicm
2021-10-14Add popup-border-lines option to set popup line style, from Alexisnicm
Hildebrandt, GitHub issue 2930.
2021-10-13Add popup-style and popup-border-style options, from Alexis Hildebrandtnicm
in GitHub issue 2927.
2021-08-17Be more sophisticated about enabling synchronized updates when there isnicm
an overlay and treat it like the active pane (use for commands which move the cursor only). When there is an overlay also use it for all panes and not just the active pane. GitHub issue 2826.
2021-08-12Restore saved cursor position after a ZWJ rather than recalculating it.nicm
2021-08-11Break the colour palette into a struct rather than just a single arraynicm
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.
2021-08-06Add basic support for zero width joiners, GitHub issues 1605 and 2784.nicm
2021-08-06Another minor fix - do not draw positions that are under the popup withnicm
spaces, from Anindya Mukherjee. Also a typo fix from Linus Arver.
2021-06-10Improve logging of screen mode changes.nicm
2021-01-29Trim output overwritten by later text or clears completely rather thannicm
only in a few cases. This means we can better track when a line should wrap. GitHub issue 2537.
2021-01-27Flush pending output before entering or exiting alternate screen rathernicm
than leaking it, oss-fuzz issue 29959.
2021-01-22Revert clear changes to writing as they don't work properly, betternicm
change to come.
2021-01-18There is no need to clear every line entirely before drawing to it, thisnicm
means moving the cursor and messes up wrapping. Better to just clear the sections that aren't written over. GitHub issue 2537.
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.