Nicholas Marriott
ba3b8ccc1d
Correctly turn handle UTF8 mouse option being toggled, from Egmont Koblinger.
2013-02-18 15:03:50 +00:00
Nicholas Marriott
e5eee7de0c
Support the latest theory for mouse input, this is enabled/disabled with SM/RM
...
1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From
Egmont Koblinger.
2013-02-18 14:52:27 +00:00
Nicholas Marriott
9d165df18a
No more lint means no more ARGSUSED.
2013-02-17 23:15:38 +00:00
Nicholas Marriott
8df3ec612a
In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence and
...
handle the most common set. Pass them through if xterm-keys is on.
2013-02-17 22:56:12 +00:00
Nicholas Marriott
4c91c153cb
I strongly suspect it is possible for tmux to block on detach in tty_raw, so
...
make the fd blocking again much later and have tty_raw just retry the write a
few times.
2013-02-17 22:28:11 +00:00
Nicholas Marriott
10db7ec51b
Include the \033 in the key tree and adjust key matching for this change.
2013-02-16 13:21:14 +00:00
Nicholas Marriott
82355d2f2d
Tidy by splitting default key tables into two.
2013-02-15 02:16:41 +00:00
Thomas Adam
a3f4eb7b24
Merge branch 'obsd-master'
...
Conflicts:
Makefile
grid-utf8.c
2013-01-30 15:27:19 +00:00
Nicholas Marriott
fdbfc7e349
Rather than having two grids for each pane, one for ASCII and one for
...
UTF-8, collapse the two together. Simplifies the code at the expense of
more memory (which can probably be reduced again later).
2013-01-18 02:16:21 +00:00
Thomas Adam
de194016ec
Merge branch 'obsd-master'
2013-01-17 01:38:21 +00:00
Nicholas Marriott
44f8e1caff
Implement ECH (erase character, CSI X). Reported by Christian Neukirchen.
2013-01-15 23:18:55 +00:00
Thomas Adam
1bc910a963
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-22 22:19:04 +00:00
Nicholas Marriott
260419f48e
Put helper function back, will be needed in a bit.
2012-11-22 14:41:11 +00:00
Thomas Adam
9763282dc1
Merge branch 'obsd-master'
2012-10-01 13:32:52 +01:00
Nicholas Marriott
44dccf7ea2
Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.
2012-09-29 06:57:56 +00:00
Thomas Adam
68cc635ed5
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-09-15 12:23:25 +01:00
Nicholas Marriott
b433886840
We can't tell what the terminal has done with a DCS string, so reset the
...
cursor and attributes afterwards.
2012-09-05 09:59:41 +00:00
Nicholas Marriott
40505e59f1
Remove xterm CRA support - support is patchy and it will be done better
...
using margins.
2012-09-04 22:37:31 +01:00
Nicholas Marriott
6307d63715
Remove xterm CRA support - support is patchy and it will be done better
...
using margins.
2012-09-03 15:47:40 +00:00
Tiago Cunha
35690fb3a5
Sync OpenBSD patchset 1163:
...
Tidy up tty_write, from Sean Estabrooks.
2012-08-31 09:20:09 +00:00
Nicholas Marriott
f61fc576d9
Tidy up tty_write, from Sean Estabrooks.
2012-08-14 08:58:25 +00:00
Tiago Cunha
a432fcd306
Sync OpenBSD patchset 1150:
...
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-11 19:34:16 +00:00
Nicholas Marriott
df912e3540
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10 11:53:01 +00:00
Tiago Cunha
f4053bc217
Sync OpenBSD patchset 1140:
...
Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
2012-07-04 10:54:45 +00:00
Nicholas Marriott
a7917430d8
Remove a couple of unused variables from redbrain at gcc dot gnu dot org.
2012-06-20 12:55:55 +00:00
Tiago Cunha
17da2f7d5f
Sync OpenBSD patchset 1121:
...
Store client in tty struct directly instead of using a callback function
pointer.
2012-05-22 21:05:30 +00:00
Tiago Cunha
49b2a255b6
Sync OpenBSD patchset 1117:
...
Use tty_pane_full_width macro in some more places.
2012-05-22 20:59:12 +00:00
Tiago Cunha
d9cb07df3b
Sync OpenBSD patchset 1116:
...
If there are any terminals with insert mode but not ich1, they can go
through the slow path. Tidies code slightly.
2012-05-22 20:58:33 +00:00
Tiago Cunha
a97f22ff2b
Sync OpenBSD patchset 1115:
...
Move some common code to repeat spaces into a function.
2012-05-22 20:57:47 +00:00
Nicholas Marriott
84c708f355
Store client in tty struct directly instead of using a callback function
...
pointer.
2012-05-22 14:32:28 +00:00
Nicholas Marriott
82b053a811
Use tty_pane_full_width macro in some more places.
2012-05-22 09:37:54 +00:00
Nicholas Marriott
2f93affb98
If there are any terminals with insert mode but not ich1, they can go
...
through the slow path. Tidies code slightly.
2012-05-22 09:36:12 +00:00
Nicholas Marriott
243d12752c
Move some common code to repeat spaces into a function.
2012-05-22 09:09:16 +00:00
Tiago Cunha
470f521410
Sync OpenBSD patchset 1109:
...
Tidy up by adding a macro for the pane being the full screen width, from
Ailin Nemui.
2012-05-12 14:58:43 +00:00
Tiago Cunha
8f29eeaae6
Sync OpenBSD patchset 1108:
...
Missing ()s in macros.
2012-05-12 14:57:36 +00:00
Tiago Cunha
f2f9bc0181
Sync OpenBSD patchset 1107:
...
Pull CRA out into a separate function and add ERA, from Ailin Nemui.
2012-05-12 14:57:02 +00:00
Nicholas Marriott
96a34a0c0a
Tidy up by adding a macro for the pane being the full screen width, from
...
Ailin Nemui.
2012-05-05 18:45:55 +00:00
Nicholas Marriott
132403b6be
Missing ()s in macros.
2012-05-05 18:31:09 +00:00
Nicholas Marriott
3e6454f2d6
Pull CRA out into a separate function and add ERA, from Ailin Nemui.
2012-05-05 18:17:59 +00:00
Tiago Cunha
f9f6eea444
Sync OpenBSD patchset 1072:
...
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-29 21:05:16 +00:00
Nicholas Marriott
f59971276a
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-20 11:01:00 +00:00
Tiago Cunha
df31f1dfc9
Sync OpenBSD patchset 1070:
...
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-18 02:25:26 +00:00
Tiago Cunha
be4d77e60f
Sync OpenBSD patchset 1062:
...
Break out termios initialization into a separate function, from George
Nachman.
2012-03-18 02:03:15 +00:00
Tiago Cunha
bde45cdd9c
Sync OpenBSD patchset 1061:
...
Do not clear to end of line if the line is full, fixes missing last
character in rightmost pane.
2012-03-18 02:02:18 +00:00
Tiago Cunha
a7c615a794
Sync OpenBSD patchset 1060:
...
Use the region lower not the pane size to work out where the bottom line
is.
2012-03-18 02:01:46 +00:00
Tiago Cunha
92c522228b
Sync OpenBSD patchset 1059:
...
Tweak last fix to actually hit the right end of pane.
2012-03-18 02:01:16 +00:00
Tiago Cunha
0987d55231
Sync OpenBSD patchset 1057:
...
Check event_initialized before event_del if event may not have been set
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-18 01:59:34 +00:00
Tiago Cunha
21ab66569c
Sync OpenBSD patchset 1055:
...
Revert screen-write.c r1.54 and fix the bug properly. After wrapping a
line in a pane, the cursor needs to move to the next line unless it
scrolled.
2012-03-18 01:57:01 +00:00
Tiago Cunha
070d266aae
Sync OpenBSD patchset 1054:
...
Send secondary DA to terminals with XT in terminfo when starting up and
parse it to work out the xterm version.
2012-03-18 01:55:45 +00:00
Tiago Cunha
e920fa3e36
Sync OpenBSD patchset 1052:
...
Fix a warning. Doh.
2012-03-18 01:47:11 +00:00