5dbf3cb036
Assign mouse x/y coords before checking them
...
When receiving mouse inputs, we should set the x/y coordinates earlier than
we currently do, so that we aren't off-by-one in the case when the statusbar
is at the top of the screen.
2013-08-20 00:02:38 +01:00
7673732c0f
Handle input mouse positions <33 (we already can generate them).
2013-08-02 08:51:57 +01:00
399a15b9fc
Merge branch 'obsd-master'
2013-03-26 16:59:37 +00:00
dfac36b6c3
Only accept partial keys if the timer has not expired, fixes infinite
...
loop when Escape is pressed the wrong number of times.
2013-03-26 14:14:08 +00:00
e2295014d9
Process ^[ as meta when a partial key is found.
2013-03-25 11:44:16 +00:00
a60687f9ba
Handle focus events from the terminal, from Aaron Jensen.
2013-03-24 09:28:59 +00:00
c7d1849e1c
Process ^[ as meta when a partial key is found.
2013-03-22 17:02:12 +00:00
67b4d5b609
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-03-22 10:33:50 +00:00
d4785fe798
Don't set key KEYC_NONE on xterm_keys_find match()
...
When calling xterm_keys_find(); if we get a complete match, don't set
the key to unknown before calling the action to complete the binding;
otherwise non-prefixed bindings will not work.
From Thomas Adam
2013-03-21 18:45:38 +00:00
d5139d1401
Fix a comment for new key table names.
2013-03-21 16:52:02 +00:00
97620bb5be
Add a home and end as modified by xterm in keypad mode, from Chris Johnsen.
2013-03-11 09:37:52 +00:00
ee0f8adfac
Handle focus events from the terminal, from Aaron Jensen.
2013-02-23 10:01:34 +00:00
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
9d165df18a
No more lint means no more ARGSUSED.
2013-02-17 23:15:38 +00:00
7d1a8f7e9e
Remove stray test code which would convert abc to x.
2013-02-17 23:05:57 +00:00
2ac1d46f46
Don't set key KEYC_NONE on xterm_keys_find match()
...
When calling xterm_keys_find(); if we get a complete match, don't set the
key to unknown before calling the action to complete the binding; otherwise
non-prefixed bindings will not work.
2013-02-16 21:04:48 +00:00
3e270af17a
Don't omit half the default table (!= not ==).
2013-02-16 13:29:40 +00:00
10db7ec51b
Include the \033 in the key tree and adjust key matching for this change.
2013-02-16 13:21:14 +00:00
2bdc59fac8
Fix a comment for new key table names.
2013-02-15 02:38:15 +00:00
784a74df0b
Fix function parameter to tty_keys_free.
2013-02-15 02:18:38 +00:00
82355d2f2d
Tidy by splitting default key tables into two.
2013-02-15 02:16:41 +00:00
1bc910a963
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-11-22 22:19:04 +00:00
260419f48e
Put helper function back, will be needed in a bit.
2012-11-22 14:41:11 +00:00
47fbf87185
Merge branch 'obsd-master'
...
Sync from OpenBSD.
2012-10-26 20:28:58 +01:00
d210d99cce
Make mouse event structure clearer by defining events (up, click, drag)
...
and simplifying how buttons and wheels are represented, from Ailin
Nemui. Should be no functional changes.
2012-10-26 14:35:42 +00:00
d6066552ee
Can't call evtimer_pending on uninitialized events, call
...
evtimer_initialized first. Reported by Vladimir Lomov, fix from Thomas
Adam slightly modified by me.
2012-09-04 22:35:52 +01:00
473911fb73
Can't call evtimer_pending on uninitialized events, call
...
evtimer_initialized first. Reported by Vladimir Lomov, fix from Thomas
Adam slightly modified by me.
2012-09-03 06:26:48 +00:00
fc8d3f7a56
Sync OpenBSD patchset 1166:
...
xterm won't reach version 500 for a while so set that as the upper limit.
2012-08-31 09:22:50 +00:00
d39c58c01c
xterm won't reach version 500 for a while so set that as the upper limit.
2012-08-21 10:08:11 +00:00
a432fcd306
Sync OpenBSD patchset 1150:
...
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-11 19:34:16 +00:00
df912e3540
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-07-10 11:53:01 +00:00
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
fff7c0b276
Sync OpenBSD patchset 1120:
...
Store mouse data in tty structure not on the stack.
2012-05-22 21:04:25 +00:00
84c708f355
Store client in tty struct directly instead of using a callback function
...
pointer.
2012-05-22 14:32:28 +00:00
fe4f00834d
Store mouse data in tty structure not on the stack.
2012-05-22 14:11:30 +00:00
bdfbb52951
Sync OpenBSD patchset 1094:
...
Handle partial keys properly by making sure the timer has actually
expired, fixes problems with mintty reported by Michael Simpson.
2012-04-24 16:17:57 +00:00
e8dff68588
Handle partial keys properly by making sure the timer has actually
...
expired, fixes problems with mintty reported by Michael Simpson.
2012-04-22 05:21:40 +00:00
407f66ccbc
Sync OpenBSD patchset 1078:
...
Some terminals respond to secondary DA with primary (they ignore the
intermediate character). So ignore the possible responses to primary DA.
2012-03-29 21:09:19 +00:00
7c9d003e99
Some terminals respond to secondary DA with primary (they ignore the
...
intermediate character). So ignore the possible responses to primary DA.
2012-03-21 21:28:03 +00:00
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
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
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
d8805af66b
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-17 22:56:04 +00:00
d3c842d367
Check event_initialized before event_del if event may not have been set
...
up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
2012-03-17 18:24:07 +00:00
c8c0d68128
Send secondary DA to terminals with XT in terminfo when starting up and
...
parse it to work out the xterm version.
2012-03-15 10:36:00 +00:00
391f1f08c0
Expand the Id keyword.
2011-07-09 09:42:33 +00:00
d5ed5fb08f
Two fixes by Micah Cowan: make mouse work properly beyond >127 on signed
...
char architectures and properly parse $TMUX by stopping the socket path
at the first comma.
2011-03-04 23:26:44 +00:00
c0888f3fd1
Make sure non-UTF8 mouse coordinates are kept to 8-bit values.
2011-03-04 20:36:59 +00:00
219442cff7
Sync OpenBSD patchset 828:
...
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.
2011-01-07 14:34:45 +00:00
ac3b78a841
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.
2011-01-03 23:35:21 +00:00