aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
Commit message (Collapse)AuthorAge
...
* 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.
* When clearing the entire screen, clear lines that are used into theNicholas Marriott2011-01-25
| | | | history like xterm does. Requested ages ago by someone I've forgotten.
* Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott2011-01-03
| | | | | | | | | | and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
* Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott2010-12-29
| | | | gmx.li.
* Ensure we overwrite UTF-8 wide characters properly, and never overwriteNicholas Marriott2010-06-21
| | | | | characters we weren't overlapping. Fixes "disappearing wide characters" glitch. From Micah Cowan.
* Merge copy mode and output mode, dropping the latter. Idea and code fromNicholas Marriott2010-04-06
| | | | Micah Cowan.
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott2009-12-03
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott2009-11-26
| | | | the rest to reduce lint output.
* Cleanup by moving various (mostly horrible) little bits handling UTF-8 gridNicholas Marriott2009-11-18
| | | | | | | data into functions in a new file, grid-utf8.c, and use sizeof intead of UTF8_DATA. Also nuke trailing whitespace from tmux.1, reminded by jmc.
* A screen can be one cell wide; don't crash if that is the case.Nicholas Marriott2009-11-16
|