aboutsummaryrefslogtreecommitdiff
path: root/tty.c
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 916:Tiago Cunha2011-05-22
| | | | | | Support DECSCUSR sequence to set the cursor style with two new terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
* Sync OpenBSD patchset 915:Tiago Cunha2011-05-22
| | | | | | | Support xterm(1) cursor colour change sequences through terminfo(5) Cc (set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked by me and Ailin Nemui.
* Sync OpenBSD patchset 914:Tiago Cunha2011-05-22
| | | | | | | | | | Support setting the xterm clipboard when copying from copy mode using 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.
* Sync OpenBSD patchset 904:Tiago Cunha2011-05-18
| | | | | | | | Use the tsl and fsl terminfo(5) capabilities to update terminal title 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 standoutNicholas Marriott2011-04-09
| | | | | (smso). From Tiago Resende.
* |PatchSet 872Nicholas Marriott2011-04-06
| | | | | | | | | | | |Date: 2011/03/27 21:36:19 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Set the terminal blocking again earlier, before sending the reset |sequences.
* Fix to properly wrap wide characters.Micah Cowan2011-03-24
|
* Sync OpenBSD patchset 868:Tiago Cunha2011-03-19
| | | | | | Fix an incorrect test which was always true (oupper is always < olower), from Yusuke ENDOH.
* Sync OpenBSD patchset 866:Tiago Cunha2011-03-19
| | | | | | | | | | | | Support passing through escape sequences to the underlying terminal by 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.
* Sync OpenBSD patchset 858:Tiago Cunha2011-02-15
| | | | | | Accept tcgetattr/tcsetattr failure, fixes problems with fatal() if the terminal disappears while locked.
* Sync OpenBSD patchset 846:Tiago Cunha2011-01-21
| | | | | | Only set a mouse mode for mouse-select-pane if none already set by the mode (any will do).
* Sync OpenBSD patchset 845:Tiago Cunha2011-01-21
| | | | | | Mouse highlight mode (1001) requires a program to cooperate so supporting it through tmux is not as easy as this, remove it for now.
* Sync OpenBSD patchset 834:Tiago Cunha2011-01-21
| | | | | | | Move all calls to fcntl(...O_NONBLOCK) into a function and clear the flag on the stdio file descriptors before closing them (fixes things like "tmux ls && cat").
* Sync OpenBSD patchset 828:Tiago Cunha2011-01-07
| | | | | | | | | | | | Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262 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.
* Sync OpenBSD patchset 812:Tiago Cunha2010-12-30
| | | | | | Support all four of the xterm mouse modes. Based on a diff from hsim at gmx.li.
* PatchSet 789Nicholas Marriott2010-12-06
| | | | | | | | | | | | | | | | | | | | Date: 2010/11/22 21:13:13 Author: nicm Branch: HEAD Tag: (none) Log: There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't 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. Members: resize.c:1.5->1.6 tmux.h:1.246->1.247 tty.c:1.92->1.93
* Sync OpenBSD patchset 775:Tiago Cunha2010-10-24
| | | | | | Trying to set FD_CLOEXEC on every fd is a lost cause, just use closefrom() before exec.
* Sync OpenBSD patchset 763:Tiago Cunha2010-09-18
| | | | | | Ugh. Pass the right type into tty_term_has. Teaches me to make last minute changes :-/.
* Sync OpenBSD patchset 762:Tiago Cunha2010-09-18
| | | | | | | | | | Use UTF-8 line drawing characters on UTF-8 terminals. Fixes some stupid 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.
* Sync OpenBSD patchset 745:Tiago Cunha2010-08-11
| | | | | | | | | | | | Change the way backoff works. Instead of stopping reading from the pty 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.
* Sync OpenBSD patchset 716:Tiago Cunha2010-06-06
| | | | | | | | | | | | | | | | | | | | Fix problems with window sizing seen by Raghavendra D Prabhu when 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.
* Sync OpenBSD patchset 714:Tiago Cunha2010-06-06
| | | | | Shut up gcc4 warnings.
* Sync OpenBSD patchset 710:Tiago Cunha2010-06-06
| | | | | | | | | | When the mode-mouse option is on, support dragging to make a selection 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).
* Sync OpenBSD patchset 656:Tiago Cunha2010-03-08
| | | | | | | | Check for colour and attribute modifications early so the translated 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.
* Sync OpenBSD patchset 654:Tiago Cunha2010-02-26
| | | | | | Don't set the terminal to nonblocking on detach until we have finished with it entirely.
* Sync OpenBSD patchset 630:Tiago Cunha2010-02-02
| | | | | | | If redrawing line 0 of the screen onto the tty, there can't be a wrap flag on the previous line, so move the cursor. Fixes status line redraw issues when resizing in choose mode and hopefully at other times as well.
* Sync OpenBSD patchset 595:Tiago Cunha2010-01-05
| | | | | Use tcflush(3) instead of TIOCFLUSH, from Ed Schouten.
* Sync OpenBSD patchset 594:Tiago Cunha2009-12-26
| | | | | Fix the logic so that transition from a 256 colour to default works properly.
* Sync OpenBSD patchset 593:Tiago Cunha2009-12-26
| | | | | Nuke some stray debugging.
* Sync OpenBSD patchset 589:Tiago Cunha2009-12-16
| | | | | | Pass through the aixterm bright colours if the terminal supports them (>= 16 colours).
* Sync OpenBSD patchset 583:Tiago Cunha2009-12-04
| | | | | | vte is buggy and doesn't home the cursor after changing the scroll region. Several people are hitting this, so add a workaround.
* Sync OpenBSD patchset 581:Tiago Cunha2009-12-04
| | | | | | | Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
* Sync OpenBSD patchset 579:Tiago Cunha2009-12-04
| | | | | Reflect the keypad mode of the application so that numlock works.
* Sync OpenBSD patchset 574:Tiago Cunha2009-11-28
| | | | | Add a couple of comments.
* Sync OpenBSD patchset 571:Tiago Cunha2009-11-28
| | | | | Fix type - attributes should be u_char not int.
* Sync OpenBSD patchset 567:Tiago Cunha2009-11-28
| | | | | | Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to the rest to reduce lint output.
* Sync OpenBSD patchset 563:Tiago Cunha2009-11-28
| | | | | Emulate il1, dl1, ich1 to run (albeit slowly) with vt100 feature set.
* Sync OpenBSD patchset 547:Tiago Cunha2009-11-19
| | | | | | | | | Cleanup by moving various (mostly horrible) little bits handling UTF-8 grid 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.
* Sync OpenBSD patchset 532:Tiago Cunha2009-11-13
| | | | | | | | Emulate the ri (reverse index) capability: this allows tmux to at least start on Sun consoles (TERM=sun or sun-color), even if there appear to still be problems on some boxes (my Blade 100 is fine but edd's Blade 1000 shows odd screen corruption).
* Sync OpenBSD patchset 520:Tiago Cunha2009-11-10
| | | | | | Just ignore tty fd errors rather than dying, stops the server dying if the session is disconnected abrubtly (eg ssh ~.).
* Sync OpenBSD patchset 516:Tiago Cunha2009-11-08
| | | | | | | Clear to the end of the screen from the right starting point when drawing line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank Terbeck.
* Sync OpenBSD patchset 508:Tiago Cunha2009-11-08
| | | | | | | | | | | | Switch tty key input over to happen on a read event. This is a bit more complicated because of escape input, but in that case instead of processing a key immediately, schedule a timer and reprocess the bufer when it expires. This currently assumes that keys will be atomic (ie that if eg F1 is pressed the entire sequence is present in the buffer). This is usually but not always true, a change in the tree format so it can differentiate potential (partial) key sequences will happens soon and will allow this to be fixed.
* Sync OpenBSD patchset 495:Tiago Cunha2009-11-08
| | | | | Switch tty fds over to a bufferevent.
* Sync OpenBSD patchset 489:Tiago Cunha2009-11-04
| | | | | Ignore the colour on space, /not/ the attributes.
* Sync OpenBSD patchset 488:Tiago Cunha2009-11-04
| | | | | | Fix the reverse emulation when a terminal doesn't have setab to use the correct fg/bg (adjusted if spaces) and happen before attribute setting.
* Sync OpenBSD patchset 471:Tiago Cunha2009-10-28
| | | | | | Add a minor optimisatin: if the character being printed is space, don't worry about setting the background colour or attributes (except reverse).
* Sync OpenBSD patchset 470:Tiago Cunha2009-10-28
| | | | | Twaek this slightly to avoid confusing use of flags variable.
* Sync OpenBSD patchset 469:Tiago Cunha2009-10-28
| | | | | | | | | | Setting SGR0 when setting the fg and bg has problems if only one of the two is meant to be default, so rewrite the code to move this outside, move setting colours before attributes and generally clean up. Tested by sthen@, fixes problems he was seeing with mutt and should fix some existing problems with (rarely) lost attributes.
* Sync OpenBSD patchset 467:Tiago Cunha2009-10-28
| | | | | tabs are better; ok nicm
* Sync OpenBSD patchset 446:Tiago Cunha2009-10-28
| | | | | | | | | | | | | | | Remove the -d flag to tmux and just use op/AX to detect default colours. Irritatingly, although op can be used to tell if a terminal supports default colours, it can't be used to set them because in some terminfo descriptions it resets attributes as a side-effect (acts as sgr0) and in others it doesn't, so it is not possible to determine reliably what the terminal state will be afterwards. So if AX is missing and op is present, tmux just sends sgr0. Anyone using -d for a terminal who finds they actually needed it can replace it using terminal-overrides, but please let me know as it is probably an omission from terminfo.