summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty-keys.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* A couple of trivial mouse-related style nits.nicm2014-04-031-3/+3
|
* Add names for mouse button bits rather than using magic numbers, fromnicm2014-03-311-6/+6
| | | | Marcel Partap.
* The last fix to xterm keys meant that some keys such as \033OA werenicm2014-02-101-10/+10
| | | | | | being wrongly treated as partial matches. So both check xterm keys after standard keys and only wildcard the minimum required ('1' to '8'). Problems reported by Ralf Horstmann and Tim van der Molen.
* Assign mouse x/y coords before checking them. When receiving mousenicm2013-10-101-3/+3
| | | | | | 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. By Thomas Adam.
* Handle input mouse positions <33 (we already can generate them).nicm2013-10-101-4/+10
|
* Only accept partial keys if the timer has not expired, fixes infinitenicm2013-03-261-4/+6
| | | | loop when Escape is pressed the wrong number of times.
* Process ^[ as meta when a partial key is found.nicm2013-03-251-2/+2
|
* Add home and end as modified by xterm in keypad mode, from Chrisnicm2013-03-251-1/+8
| | | | Johnsen.
* Handle focus events from the terminal, from Aaron Jensen.nicm2013-03-241-1/+14
|
* Support the latest theory for mouse input, this is enabled/disabled withnicm2013-03-221-45/+103
| | | | | SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or \033[b;x;ym. From Egmont Koblinger.
* No more lint means no more ARGSUSED.nicm2013-03-221-2/+1
|
* Remove stray test code which would convert abc to x.nicm2013-03-221-3/+1
|
* Don't set key KEYC_NONE on xterm_keys_find match()nicm2013-03-211-2/+1
| | | | | | | | 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
* Include the \033 in the key tree and adjust key matching for this change.nicm2013-03-211-82/+63
|
* Fix a comment for new key table names.nicm2013-03-211-4/+4
|
* Fix function parameter to tty_keys_free.nicm2013-03-211-2/+2
|
* Tidy by splitting default key tables into two.nicm2013-03-211-239/+238
|
* Put helper function back, will be needed in a bit.nicm2012-11-221-6/+6
|
* Instead of worrying about xterm version, send DA and read DEC servicenicm2012-11-221-19/+13
| | | | | class which is more likely to be useful. Not used for anything yet anyway.
* Make mouse event structure clearer by defining events (up, click, drag)nicm2012-10-261-10/+48
| | | | | and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
* Can't call evtimer_pending on uninitialized events, callnicm2012-09-031-2/+4
| | | | | evtimer_initialized first. Reported by Vladimir Lomov, fix from Thomas Adam slightly modified by me.
* xterm won't reach version 500 for a while so set that as the upper limit.nicm2012-08-211-2/+3
|
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-101-2/+2
|
* Store client in tty struct directly instead of using a callback functionnicm2012-05-221-3/+3
| | | | pointer.
* Store mouse data in tty structure not on the stack.nicm2012-05-221-16/+14
|
* Handle partial keys properly by making sure the timer has actuallynicm2012-04-221-5/+9
| | | | expired, fixes problems with mintty reported by Michael Simpson.
* Some terminals respond to secondary DA with primary (they ignore thenicm2012-03-211-5/+9
| | | | intermediate character). So ignore the possible responses to primary DA.
* On xterm 271 and later, put the terminal into SCL 5 and use DECCRA fornicm2012-03-171-3/+2
| | | | | scrolling the region in panes (if the large region check isn't hit). With help from Ailin Nemui.
* Check event_initialized before event_del if event may not have been setnicm2012-03-171-3/+5
| | | | up; libevent2 complains about this. Reported by Moriyoshi Koizumi.
* Send secondary DA to terminals with XT in terminfo when starting up andnicm2012-03-151-2/+78
| | | | parse it to work out the xterm version.
* Two fixes by Micah Cowan: make mouse work properly beyond >127 on signednicm2011-03-041-3/+3
| | | | | char architectures and properly parse $TMUX by stopping the socket path at the first comma.
* Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262nicm2011-01-031-16/+46
| | | | | | | | | | 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.
* Key table should be const.nicm2011-01-011-5/+5
|
* When the mode-mouse option is on, support dragging to make a selectionnicm2010-05-311-2/+3
| | | | | | | | 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).
* Accept a full key match (not a partial) even if there is data left innicm2010-03-221-2/+2
| | | | the buffer.
* Allow keys to be replaced and reorder the table so that terminfo-defined keysnicm2009-12-171-127/+135
| | | | (or terminal-overrides) take precedence over internally defined.
* New server option, escape-time, to set the timeout used to detect if escapesnicm2009-12-141-4/+5
| | | | are alone or part of a function key or meta sequence.
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-10/+10
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Look for mice and xterm keys before standard function keys as they are lessnicm2009-12-011-10/+10
| | | | likely to be partial versions.
* Handle partial xterm function key sequences.nicm2009-11-301-4/+7
|
* Continue rather than returning if not a mouse key, to avoid hanging on anynicm2009-11-261-3/+2
| | | | function key...
* Remove a couple of unused arguments where possible, and add /* ARGSUSED */ tonicm2009-11-261-1/+2
| | | | the rest to reduce lint output.
* Handle the possibility of partial mouse reads, and fix a comment while here.nicm2009-11-261-10/+37
|
* Support rxvt-style keys again, but this time: support all the variations, putnicm2009-11-121-13/+97
| | | | | them in as raw escape sequences rather than fiddling with the values from terminfo, put them /after/ the terminfo values so the latter take precedence.
* Twiddling the last bit is an rxvtism, so do not support it in the table bynicm2009-11-101-44/+35
| | | | default.
* The input key should be a u_char. Fixes top-bit-set input problem reported bynicm2009-11-091-2/+2
| | | | ajacoutot@.
* Constify buf.nicm2009-11-091-4/+5
|
* Unused variable. Aargh.nicm2009-11-051-2/+2
|
* Switch the tty key tree over to an (unbalanced) ternary tree which allowsnicm2009-11-051-80/+156
| | | | | | | partial matches to be done (they wait for further data or a timer to expire, like a naked escape). Mouse and xterm-style keys still expect to be atomic.
* Key flags are only used for initialisation so they are not needed in the mainnicm2009-11-051-6/+7
| | | | tty_key struct.