aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2014-04-23
|\ | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Some more long lines.nicm2014-04-17
| |
* | Merge branch 'obsd-master'Thomas Adam2014-01-31
|\| | | | | | | | | | | | | Conflicts: Makefile cmd-server-info.c cmd-start-server.c
| * 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.
* | Merge branch 'obsd-master'Thomas Adam2013-05-25
|\| | | | | | | | | Conflicts: tmux.h
| * RIS should reset focus reporting, from Hayaki Saito.Nicholas Marriott2013-05-15
| |
* | Merge branch 'obsd-master'Thomas Adam2013-04-13
|\| | | | | | | | | Conflicts: tmux.c
| * 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.
* | Unbreak line wrapping.Nicholas Marriott2013-02-18
| |
* | Implement DECAWM (SM/RM 7) using existing MODE_WRAP flag.Nicholas Marriott2013-02-18
| |
* | Support the latest theory for mouse input, this is enabled/disabled with SM/RMNicholas Marriott2013-02-18
| | | | | | | | | | 1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
* | No more lint means no more ARGSUSED.Nicholas Marriott2013-02-17
| |
* | Instead of loads of little screen_write_*_on and off functions which justNicholas Marriott2013-02-17
| | | | | | | | change mode flags, just have screen_write_mode_set and screen_write_mode_clear.
* | Merge branch 'obsd-master'Thomas Adam2013-01-30
|\| | | | | | | | | | | Conflicts: Makefile grid-utf8.c
| * 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).
* | Merge branch 'obsd-master'Thomas Adam2013-01-17
|\|
| * Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.Nicholas Marriott2013-01-15
| |
* | Merge branch 'obsd-master'Thomas Adam2012-12-08
|\| | | | | | | Sync from OpenBSD.
| * 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
| |
| * Add an explicit zero-length check for UTF-8 input data, prompted by a reportNicholas Marriott2009-11-11
| | | | | | | | | | | | | | | | from parfait via deraadt. While here, add a statement to set the width when filling with _s if not enough space (width should never be high enough at the moment anyway), and wrap some long lines.
| * Try to reduce the UTF-8 mess.Nicholas Marriott2009-10-20
| | | | | | | | | | | | | | | | | | | | | | | | Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
| * UTF-8 combined character fixes.Nicholas Marriott2009-10-20
| | | | | | | | | | | | | | | | | | | | Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the UTF-8 cell data size to 9 and alter the code to allow this. Also break off the combining code into a separate function, handle any further combining beyond the buffer size by replacing the character with _s, and when redrawing the UTF-8 character don't assume the first part has just been printed, redraw the entire line.
| * Move the check for whether to force a line wrapper lower down into the tty codeNicholas Marriott2009-10-20
| | | | | | | | where it has access to the tty width, which is what should have been checked.
| * Always move the cursor position on !xenl terminals, since there is no invisibleNicholas Marriott2009-10-17
| | | | | | | | | | | | last cursor position. Also nuke an unused variable.
| * Don't print wide characters at screen width - 1. Matches uterm behaviour andNicholas Marriott2009-10-17
| | | | | | | | is probably a better idea anyway.
| * Instead of having a complicated check to see if the cursor is in the lastNicholas Marriott2009-10-17
| | | | | | | | | | | | position to avoid an explicit wrap, actually move it there. Some UTF-8 fixes to come.