aboutsummaryrefslogtreecommitdiff
path: root/input-keys.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2017-02-01
|\
| * Implement "all event" (1003) mouse mode but in a way that works. Thenicm2017-02-01
| | | | | | | | | | | | | | | | | | | | | | main issue is that if we have two panes, A with 1002 and B with 1003, we need to set 1003 outside tmux in order to get all the mouse events, but then we need to suppress the ones that pane A doesn't want. This is easy in SGR mouse mode, because buttons == 3 is only used for movement events (for other events the trailing m/M marks a release instead), but in normal mouse mode we can't tell so easily. So for that, look at the previous event instead - if it is drag+release as well, then the current event is a movement event.
| * Revert previous for now, it will break TERM=screen.nicm2017-01-25
| |
| * If xterm-keys is on, use xterm(1) style keys for Home and End as well asnicm2017-01-25
| | | | | | | | modified keys.
* | Merge branch 'obsd-master'Thomas Adam2016-10-04
|\|
| * Remove some dead code in cmd-move-window.c and make a load of localnicm2016-10-03
| | | | | | | | functions static.
* | Merge branch 'obsd-master'Thomas Adam2016-03-02
|\| | | | | | | | | Conflicts: utf8.c
| * Limit x, y and b to 0x7ff for UTF-8 mouse input, suggested by schwarze@.nicm2016-03-02
| |
| * Use system wcwidth() instead of carrying around UTF-8 width tables.nicm2016-03-01
| |
* | Merge branch 'obsd-master'Thomas Adam2016-01-19
|\|
| * I no longer use my SourceForge address so replace it.nicm2016-01-19
| |
* | Merge branch 'obsd-master'Thomas Adam2015-12-12
|\|
| * Allow prefix and prefix2 to be set to None to disable (useful if younicm2015-12-12
| | | | | | | | would rather bind the prefix in the root table).
* | Merge branch 'obsd-master'Thomas Adam2015-11-24
|\|
| * Partly revert previous, it is harmless to keep support for UTF-8 mousenicm2015-11-23
| | | | | | | | mode inside tmux, just no longer support it for tmux itself.
* | Merge branch 'obsd-master'Thomas Adam2015-11-23
|\|
| * Remove support for the UTF-8 mouse extension. This was a briefly used,nicm2015-11-23
| | | | | | | | | | | | | | | | poor idea that was fairly quickly replaced by SGR mouse input (which is now widespread). It is impossible to tell the difference between UTF-8 and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux has not handled it correctly in any case; and it is ridiculous to have three different forms of mouse input.
* | Merge branch 'obsd-master'Thomas Adam2015-11-17
|\|
| * 0x7f is a valid key.nicm2015-11-16
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\|
| * All these return values from utf8_* are confusing, use an enum.nicm2015-11-14
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-13
|\|
| * Rename overly-long utf8data to ud throughout.nicm2015-11-12
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-12
|\|
| * Support UTF-8 key bindings by expanding the key type from int tonicm2015-11-12
| | | | | | | | | | | | uint64_t and converting UTF-8 to Unicode on input and the reverse on output. (This allows key bindings, there are still omissions - the largest being that the various prompts do not accept UTF-8.)
* | Merge branch 'obsd-master'Thomas Adam2015-10-27
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile client.c server-client.c server.c tmux.c tmux.h
| * Move struct options into options.c.nicm2015-10-27
| |
* | Merge branch 'obsd-master'Thomas Adam2015-10-26
|\|
| * Some extra logging of where keys are actually going.nicm2015-10-26
| |
* | Merge branch 'obsd-master'Thomas Adam2015-04-22
|\|
| * Don't eat the mouse event that triggers a drag end because we may wantnicm2015-04-21
| | | | | | | | to pass it on to application inside the pane.
* | Merge branch 'obsd-master'Thomas Adam2015-04-20
|\|
| * Rewrite of tmux mouse support which was a mess. Instead of havingnicm2015-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options for "mouse-this" and "mouse-that", mouse events may be bound as keys and there is one option "mouse" that turns on mouse support entirely (set -g mouse on). See the new MOUSE SUPPORT section of the man page for description of the key names and new flags (-t= to specify the pane or window under mouse as a target, and send-keys -M to pass through a mouse event). The default builtin bindings for the mouse are: bind -n MouseDown1Pane select-pane -t=; send-keys -M bind -n MouseDown1Status select-window -t= bind -n MouseDrag1Pane copy-mode -M bind -n MouseDrag1Border resize-pane -M To get the effect of turning mode-mouse off, do: unbind -n MouseDrag1Pane unbind -temacs-copy MouseDrag1Pane The old mouse options are now gone, set-option -q may be used to suppress warnings if mixing configuration files.
* | Merge branch 'obsd-master'Thomas Adam2015-04-19
|\|
| * Fix some format specifier nits, from Ben Boeckel.nicm2015-03-31
| |
* | Merge branch 'obsd-master'Thomas Adam2014-11-09
|\|
| * Tidy up mode-mouse check.nicm2014-11-05
| |
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-08-09
|\| | | | | | | | | Conflicts: client.c
| * Revert the up/down wheel emulation for now, there will be a better waynicm2014-07-21
| | | | | | | | to do this along later for those who want it.
| * Drop explicit support for F13-F20 and change to match the xterm terminfonicm2014-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | entry: F13-F24 are S-F1 to S-F12 F25-F36 are C-F1 to C-F12 F37-F48 are C-S-F1 to C-S-F12 F49-F60 are M-F1 to M-F12 and F61-F63 are M-S-F1 to M-S-F3 This should be no difference for applications inside tmux, but means that any key binding for F13 will need to be replaced by S-F1 and so on.
* | Merge branch 'obsd-master'Thomas Adam2014-05-13
|\| | | | | | | | | | | Conflicts: format.c window.c
| * Send up and down keys for mouse wheel in alternate screen mode (when itnicm2014-05-08
| | | | | | | | normally does nothing), from Marcel Partap.
* | Merge branch 'obsd-master'Thomas Adam2014-04-24
|\|
| * There is no longer a need for a paste_stack struct or for global_buffersnicm2014-04-24
| | | | | | | | to be global. Move to paste.c.
* | Merge branch 'obsd-master'Thomas Adam2014-04-05
|\| | | | | | | | | | | Conflicts: Makefile tty-keys.c
| * A couple of trivial mouse-related style nits.nicm2014-04-03
| |
| * Remove log_debug2 as well and simplify log.c.nicm2014-03-31
| |
* | Remove log_debug2 as well and simplify log.c.Nicholas Marriott2014-03-07
| |
* | Merge branch 'obsd-master'Thomas Adam2013-05-25
|\| | | | | | | | | Conflicts: tmux.h