summaryrefslogtreecommitdiffstats
path: root/tty.c
AgeCommit message (Collapse)Author
2013-02-23Handle focus events from the terminal, from Aaron Jensen.Nicholas Marriott
2013-02-22Add support for focus notifications when tmux pane changes, based on work byNicholas Marriott
Aaron Jensen.
2013-02-18Use tty_raw on stop, not tty_puts.Nicholas Marriott
2013-02-18Correctly turn handle UTF8 mouse option being toggled, from Egmont Koblinger.Nicholas Marriott
2013-02-18Support the latest theory for mouse input, this is enabled/disabled with SM/RMNicholas Marriott
1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
2013-02-17No more lint means no more ARGSUSED.Nicholas Marriott
2013-02-17In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence andNicholas Marriott
handle the most common set. Pass them through if xterm-keys is on.
2013-02-17I strongly suspect it is possible for tmux to block on detach in tty_raw, soNicholas Marriott
make the fd blocking again much later and have tty_raw just retry the write a few times.
2013-02-16Include the \033 in the key tree and adjust key matching for this change.Nicholas Marriott
2013-02-15Tidy by splitting default key tables into two.Nicholas Marriott
2013-01-30Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile grid-utf8.c
2013-01-18Rather than having two grids for each pane, one for ASCII and one forNicholas Marriott
UTF-8, collapse the two together. Simplifies the code at the expense of more memory (which can probably be reduced again later).
2013-01-17Merge branch 'obsd-master'Thomas Adam
2013-01-15Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.Nicholas Marriott
2012-11-22Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2012-11-22Put helper function back, will be needed in a bit.Nicholas Marriott
2012-10-01Merge branch 'obsd-master'Thomas Adam
2012-09-29Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.Nicholas Marriott
2012-09-15Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2012-09-05We can't tell what the terminal has done with a DCS string, so reset theNicholas Marriott
cursor and attributes afterwards.
2012-09-04Remove xterm CRA support - support is patchy and it will be done betterNicholas Marriott
using margins.
2012-09-03Remove xterm CRA support - support is patchy and it will be done betterNicholas Marriott
using margins.
2012-08-31Sync OpenBSD patchset 1163:Tiago Cunha
Tidy up tty_write, from Sean Estabrooks.
2012-08-14Tidy up tty_write, from Sean Estabrooks.Nicholas Marriott
2012-07-11Sync OpenBSD patchset 1150:Tiago Cunha
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-07-04Sync OpenBSD patchset 1140:Tiago Cunha
Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
2012-06-20Remove a couple of unused variables from redbrain at gcc dot gnu dot org.Nicholas Marriott
2012-05-22Sync OpenBSD patchset 1121:Tiago Cunha
Store client in tty struct directly instead of using a callback function pointer.
2012-05-22Sync OpenBSD patchset 1117:Tiago Cunha
Use tty_pane_full_width macro in some more places.
2012-05-22Sync OpenBSD patchset 1116:Tiago Cunha
If there are any terminals with insert mode but not ich1, they can go through the slow path. Tidies code slightly.
2012-05-22Sync OpenBSD patchset 1115:Tiago Cunha
Move some common code to repeat spaces into a function.
2012-05-22Store client in tty struct directly instead of using a callback functionNicholas Marriott
pointer.
2012-05-22Use tty_pane_full_width macro in some more places.Nicholas Marriott
2012-05-22If there are any terminals with insert mode but not ich1, they can goNicholas Marriott
through the slow path. Tidies code slightly.
2012-05-22Move some common code to repeat spaces into a function.Nicholas Marriott
2012-05-12Sync OpenBSD patchset 1109:Tiago Cunha
Tidy up by adding a macro for the pane being the full screen width, from Ailin Nemui.
2012-05-12Sync OpenBSD patchset 1108:Tiago Cunha
Missing ()s in macros.
2012-05-12Sync OpenBSD patchset 1107:Tiago Cunha
Pull CRA out into a separate function and add ERA, from Ailin Nemui.
2012-05-05Tidy up by adding a macro for the pane being the full screen width, fromNicholas Marriott
Ailin Nemui.
2012-05-05Missing ()s in macros.Nicholas Marriott
2012-05-05Pull CRA out into a separate function and add ERA, from Ailin Nemui.Nicholas Marriott
2012-03-29Sync OpenBSD patchset 1072:Tiago Cunha
Add a simple form of output rate limiting by counting the number of 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.
2012-03-20Add a simple form of output rate limiting by counting the number ofNicholas Marriott
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.
2012-03-18Sync OpenBSD patchset 1070:Tiago Cunha
On xterm 271 and later, put the terminal into SCL 5 and use DECCRA for scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui.
2012-03-18Sync OpenBSD patchset 1062:Tiago Cunha
Break out termios initialization into a separate function, from George Nachman.
2012-03-18Sync OpenBSD patchset 1061:Tiago Cunha
Do not clear to end of line if the line is full, fixes missing last character in rightmost pane.
2012-03-18Sync OpenBSD patchset 1060:Tiago Cunha
Use the region lower not the pane size to work out where the bottom line is.
2012-03-18Sync OpenBSD patchset 1059:Tiago Cunha
Tweak last fix to actually hit the right end of pane.
2012-03-18Sync OpenBSD patchset 1057:Tiago Cunha
Check event_initialized before event_del if event may not have been set up; libevent2 complains about this. Reported by Moriyoshi Koizumi.