summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 :-/.
* Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupidnicm2010-09-111-37/+20
| | | | | | | | terminals (I'm looking at you, putty) which disable the vt100 ACS mode switching sequences in UTF-8 mode. Also on terminals without ACS at all, use ASCII equivalents where obvious.
* Change the way backoff works. Instead of stopping reading from the ptynicm2010-08-111-2/+4
| | | | | | | | | | when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.
* Fix problems with window sizing seen by Raghavendra D Prabhu whennicm2010-06-051-9/+30
| | | | | | | | | | | | | | | | | | starting tmux from .xinitrc. One of the very few things the server relies on the client for now is to pass through a message on SIGWINCH, but there is a condition where potentially a SIGWINCH may be lost during the transition from unattached (main.c) to attached (client.c). So trigger a size change immediately after the client installs its SIGWINCH handler. Also, when the terminal is resized, reset the scroll region and cursor position. Previously, we were clearing our saved idea of these, but in fact some terminals do not reset them on resize, so this caused problems during redraw. While here make a resize to the same size not cause a redraw and rename the tmux.out output log file to include the tmux PID.
* Shut up gcc4 warnings.nicm2010-06-051-3/+3
|
* When the mode-mouse option is on, support dragging to make a selectionnicm2010-05-311-6/+13
| | | | | | | | in copy mode. Also support the scroll wheel, although xterm strangely does not ignore it in application mouse mode, causing redraw artifacts when scrolling up (other terminals appear to be better behaved).
* Check for colour and attribute modifications early so the translatednicm2010-03-011-53/+92
| | | | | | values can be stored in the cached terminal attributes rather than the requested (untranslated) values. Prevents tmux clearing and setting the attributes for every character when using aixterm colours.
* Don't set the terminal to nonblocking on detach until we have finished with itnicm2010-02-241-5/+4
| | | | entirely.
* If redrawing line 0 of the screen onto the tty, there can't be a wrap flag onnicm2010-02-011-2/+2
| | | | | the previous line, so move the cursor. Fixes status line redraw issues when resizing in choose mode and hopefully at other times as well.
* Use tcflush(3) instead of TIOCFLUSH, from Ed Schouten.nicm2010-01-011-6/+3
|
* Fix the logic so that transition from a 256 colour to default works properly.nicm2009-12-261-5/+7
|
* Nuke some stray debugging.nicm2009-12-261-2/+1
|
* Pass through the aixterm bright colours if the terminal supports them (>= 16nicm2009-12-141-1/+28
| | | | colours).
* vte is buggy and doesn't home the cursor after changing the scrollnicm2009-12-041-4/+2
| | | | region. Several people are hitting this, so add a workaround.
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-41/+41
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Reflect the keypad mode of the application so that numlock works.nicm2009-12-021-2/+8
|
* Add a couple of comments.nicm2009-11-271-1/+2
|
* Fix type - attributes should be u_char not int.nicm2009-11-261-7/+6
|
* Remove a couple of unused arguments where possible, and add /* ARGSUSED */ tonicm2009-11-261-4/+6
| | | | the rest to reduce lint output.