summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove xterm CRA support - support is patchy and it will be done betternicm2012-09-031-59/+2
| | | | using margins.
* Tidy up tty_write, from Sean Estabrooks.nicm2012-08-141-17/+10
|
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-6/+6
|
* Remove a couple of unused variables from redbrain at gcc dot gnu dot org.nicm2012-06-201-3/+1
|
* Store client in tty struct directly instead of using a callback functionnicm2012-05-221-2/+3
| | | | pointer.
* Use tty_pane_full_width macro in some more places.nicm2012-05-221-5/+3
|
* If there are any terminals with insert mode but not ich1, they can gonicm2012-05-221-7/+2
| | | | through the slow path. Tidies code slightly.
* Move some common code to repeat spaces into a function.nicm2012-05-221-33/+23
|
* Tidy up by adding a macro for the pane being the full screen width, fromnicm2012-05-051-24/+13
| | | | Ailin Nemui.
* Missing ()s in macros.nicm2012-05-051-3/+3
|
* Pull CRA out into a separate function and add ERA, from Ailin Nemui.nicm2012-05-051-12/+43
|
* Add a simple form of output rate limiting by counting the number ofnicm2012-03-201-2/+2
| | | | | | | | | | | | | | | | | | certain C0 sequences (linefeeds, backspaces, carriage returns) and if it exceeds a threshold (current default 50/millisecond), start to redraw the pane every 100 milliseconds instead of making each change as it comes. Two configuration options - c0-change-trigger and c0-change-interval. This makes tmux much more responsive under very fast output (for example yes(1) or accidentally cat'ing a large file) but may not be perfect on all terminals and connections - feedback very welcome, particularly where this change has a negative rather than positive effect (making it off by default is a possibility). After much experimentation based originally on a request Robin Lee Powell (which ended with a completely different solution), this idea from discussion with Ailin Nemui.
* On xterm 271 and later, put the terminal into SCL 5 and use DECCRA fornicm2012-03-171-3/+42
| | | | | scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui.
* Break out termios initialization into a separate function, from Georgenicm2012-03-171-8/+15
| | | | Nachman.
* Do not clear to end of line if the line is full, fixes missing lastnicm2012-03-171-2/+2
| | | | character in rightmost pane.
* Use the region lower not the pane size to work out where the bottom linenicm2012-03-171-2/+2
| | | | is.
* Tweak last fix to actually hit the right end of pane.nicm2012-03-171-2/+2
|
* Check event_initialized before event_del if event may not have been setnicm2012-03-171-2/+3
| | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Revert screen-write.c r1.54 and fix the bug properly. After wrapping anicm2012-03-171-2/+5
| | | | | line in a pane, the cursor needs to move to the next line unless it scrolled.
* Send secondary DA to terminals with XT in terminfo when starting up andnicm2012-03-151-1/+4
| | | | parse it to work out the xterm version.
* Fix a warning. Doh.nicm2012-03-151-1/+2
|
* Add a helper function for enabling an optimization to make some codenicm2012-03-151-6/+17
| | | | clearer.
* Erm, use EL in a way that actually works...nicm2012-03-121-2/+2
|
* Use EL to clear to end of line if possible.nicm2012-03-121-2/+3
|
* Remove some bits leftover from unused backoff code.nicm2012-03-091-2/+2
|
* Support "bracketed paste" mode. This adds a -p flag to paste-buffer - ifnicm2012-03-031-1/+7
| | | | | | | 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 wrapper function tty_set_size from George Nachman.nicm2012-02-151-4/+11
|
* Add an option to move the status line to the top of the screen,nicm2012-01-291-31/+36
| | | | requested by many.
* Add strings to allow the aixterm bright colours to be used whennicm2012-01-211-5/+5
| | | | configuring colours, requested by Elliott Cable a few months ago.
* Calculate last position correctly for UTF-8 wide characters, reported bynicm2012-01-151-2/+5
| | | | Matthias Lederhofer.
* Add a tty_bell wrapper function, from Dylan Alex Simon.nicm2011-08-241-1/+7
|
* Trim another useless if statement, from Ailin Nemui.nicm2011-05-261-2/+2
|
* Support DECSCUSR sequence to set the cursor style with two newnicm2011-05-201-1/+18
| | | | terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
* Support xterm(1) cursor colour change sequences through terminfo(5) Ccnicm2011-05-201-5/+31
| | | | | (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
* Support setting the xterm clipboard when copying from copy mode usingnicm2011-05-181-1/+29
| | | | | | | | 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.
* Use the tsl and fsl terminfo(5) capabilities to update terminal titlenicm2011-05-081-6/+5
| | | | | | and automatically fill them in on terminals with the XT capability (which means their title setting is xterm-compatible). From hsim at gmx.li.
* If the terminal supports sitm for italics, use it instead of standoutnicm2011-04-091-2/+7
| | | | (smso). From Tiago Resende.
* Set the terminal blocking again earlier, before sending the resetnicm2011-03-271-3/+3
| | | | sequences.
* Fix to properly wrap wide characters, from Micah Cowan.nicm2011-03-261-4/+12
|
* Fix an incorrect test which was always true (oupper is always < olower),nicm2011-03-081-2/+2
| | | | from Yusuke ENDOH.
* Support passing through escape sequences to the underlying terminal bynicm2011-03-071-1/+11
| | | | | | | | | | 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.
* Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if thenicm2011-01-291-7/+4
| | | | terminal disappears while locked.
* Only set a mouse mode for mouse-select-pane if none already set by thenicm2011-01-151-9/+9
| | | | mode (any will do).
* Mouse highlight mode (1001) requires a program to cooperate sonicm2011-01-151-5/+1
| | | | supporting it through tmux is not as easy as this, remove it for now.
* Move all calls to fcntl(...O_NONBLOCK) into a function and clear thenicm2011-01-081-9/+3
| | | | | flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
* Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262nicm2011-01-031-1/+5
| | | | | | | | | | 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 atnicm2010-12-291-9/+17
| | | | gmx.li.
* There is somewhere that WINDOW_HIDDEN is getting set when it shouldn'tnicm2010-11-221-2/+2
| | | | | | | | be and I can't find it, but the flag itself is a useless optimisation that only applies to automatic-resize windows, so just dispose of it entirely. Fixes problems reported by Nicholas Riley.
* Trying to set FD_CLOEXEC on every fd is a lost cause, just usenicm2010-10-161-4/+1
| | | | closefrom() before exec.
* Ugh. Pass the right type into tty_term_has. Teaches me to make lastnicm2010-09-111-2/+2
| | | | minute changes :-/.