aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
Commit message (Collapse)AuthorAge
...
* Fix a couple of problems with insert mode: flush dirty cells before wenicm2016-10-12
| | | | | modify the screen, not after; and use grid_view_insert_cells to make space not grid_move_cells.
* Redraw selection in tty_draw_line, so it appears when redrawing wholenicm2016-10-12
| | | | pane. Reported by Theo Buehler.
* screen_write_copy tried to be clever and clear the line if it reachednicm2016-10-05
| | | | | | | the end of the source, but it was wrong and causes problems that are only showing up now we are more aggressive about skipping redundant screen updates. Remove the optimization entirely as more trouble than it is worth to fix (and it'll have to go when BCE is done anyway).
* Wrap some long lines in screen-write.c.nicm2016-10-05
|
* Check padding when writing any character with width > 1, in case theynicm2016-09-29
| | | | | overlap after the first character (for example with cells xy and ab, y is replacing a).
* Remember the number of lines scrolled into the history (versus clearednicm2016-09-02
| | | | | | into the history) and when resizing only use scrolled lines and not cleared lines (which are probably not intended to reappear). From Chaoren Lin.
* Don't update cells in each block of data read from a pane immediately,nicm2016-07-15
| | | | | | instead track them as change (dirty) and update them once at the end, saves much time if repeatedly writing the same cell. Also fix comparison of cells being equal in a few places (memcmp is not enough).
* Cache selected state so that cells going from selected to unselected are notnicm2016-06-06
| | | | skipped, reported by Omar Sandoval.
* Do not draw character to screen if it has not changed, and do not savenicm2016-05-30
| | | | | last character if it won't be used. This (and last few commits) prompted by a report from Hubert depesz Lubaczewski.
* Padding cell is always the same so use a static.nicm2016-05-27
|
* Break the save-last-cell code into a separate function (so it can benicm2016-05-27
| | | | called conditionally later).
* Make the grid_cell passed into screen_write_* const.nicm2016-04-29
|
* Clear RGB flags during selection.nicm2016-01-31
|
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* Style nits and line wrapping of function declarations.nicm2015-12-11
|
* Partly revert previous, it is harmless to keep support for UTF-8 mousenicm2015-11-23
| | | | mode inside tmux, just no longer support it for tmux itself.
* Remove support for the UTF-8 mouse extension. This was a briefly used,nicm2015-11-23
| | | | | | | | poor idea that was fairly quickly replaced by SGR mouse input (which is now widespread). It is impossible to tell the difference between UTF-8 and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux has not handled it correctly in any case; and it is ridiculous to have three different forms of mouse input.
* Use __unused rather than rolling our own.nicm2015-11-18
|
* All these return values from utf8_* are confusing, use an enum.nicm2015-11-14
|
* Be more strict about invalid UTF-8.nicm2015-11-14
|
* Long overdue change to the way we store cells in the grid: now, insteadnicm2015-11-13
| | | | | | | | | | | | | | | of storing a full grid_cell with UTF-8 data and everything, store a new type grid_cell_entry. This can either be the cell itself (for ASCII cells), or an offset into an extended array (per line) for UTF-8 data. This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the majority for most users) without the complexity of the shadow array we had before. Grid memory without any UTF-8 is about half. The disadvantage that cells can no longer be modified in place and need to be copied out of the grid and back but it turned out to be lot less complicated than I expected.
* Rename overly-long utf8data to ud throughout.nicm2015-11-12
|
* Nuke the utf8 and status-utf8 options and make tmux only a UTF-8nicm2015-11-12
| | | | | terminal. We still support non-UTF-8 terminals outside tmux, but inside it is always UTF-8 (as when the utf8 and status-utf8 options were on).
* Remove some extra blank lines.nicm2015-09-14
|
* Revert to marking lines as wrapped on newlines, fixes problems withnicm2015-07-13
| | | | capturep -J.
* Two improvements to reflow from Balazs Kezes:nicm2014-11-08
| | | | | | | | - Don't extend the line to full width on insert/delete character which means leaves extra spaces when reflowing. - Only mark a line wrapped when the cursor actually goes off the end, not on newlines which can be used for positioning.
* Better format for printf format attributes.nicm2014-10-20
|
* Copy ACS characters as UTF-8, from Balazs Kezes.nicm2014-10-02
|
* Some more long lines.nicm2014-04-17
|
* Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* RIS should reset focus reporting, from Hayaki Saito.Nicholas Marriott2013-05-15
|
* Move the cursor back into the last column on CUU/CUD to match xtermNicholas Marriott2013-03-27
| | | | behaviour. From George Nachman.
* Unbreak line wrapping.Nicholas Marriott2013-03-22
|
* Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.Nicholas Marriott2013-03-22
|
* Support the latest theory for mouse input, this is enabled/disabled withNicholas Marriott2013-03-22
| | | | | SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
* Instead of loads of little screen_write_*_on and off functions whichNicholas Marriott2013-03-21
| | | | | just change mode flags, just have screen_write_mode_set and screen_write_mode_clear.
* Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott2013-01-18
| | | | | UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
* Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.Nicholas Marriott2013-01-15
|
* Handle resetting 256-colours properly when parsing #[default],Nicholas Marriott2012-12-08
| | | | #[fg=default] and #[bg=default] styles.
* Use ACS characters for choose-tree arrows based on diff from RomainNicholas Marriott2012-09-24
| | | | Francoise.
* xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
|
* Revert screen-write.c r1.54 and fix the bug properly. After wrapping aNicholas Marriott2012-03-17
| | | | | line in a pane, the cursor needs to move to the next line unless it scrolled.
* Store context off before moving the cursor when wrapping, to fix longNicholas Marriott2012-03-14
| | | | standing bug drawing over the status line.
* Support "bracketed paste" mode. This adds a -p flag to paste-buffer - ifNicholas Marriott2012-03-03
| | | | | | | this is used and the application has requested bracketed pastes, then tmux surrounds the pasted text by \033[200~ and \033[201~. Applications like vim can (apparently) use this to avoid, for example, indenting the text. From Ailin Nemui.
* Add a -R flag to send-keys to reset the terminal. Written ages ago andNicholas Marriott2012-01-21
| | | | Suggested by someone, I forget who.
* Support for \e[3J to clear the history. Also send the correspondingNicholas Marriott2011-10-23
| | | | terminfo code (E3) before locking.
* Support setting the xterm clipboard when copying from copy mode usingNicholas Marriott2011-05-18
| | | | | | | | the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
* Fix character position check, from Tiago Resende.Nicholas Marriott2011-04-17
|
* Fix to properly wrap wide characters, from Micah Cowan.Nicholas Marriott2011-03-26
|
* Support passing through escape sequences to the underlying terminal byNicholas Marriott2011-03-07
| | | | | | | | | | using DCS with a "tmux;" prefix. Escape characters in the sequences must be doubled. For example: $ printf '\033Ptmux;\033\033]12;red\007\033\\' Will pass \033]12;red\007 to the terminal (and change the cursor colour in xterm). From Kevin Goodsell.