summaryrefslogtreecommitdiffstats
path: root/input-keys.c
AgeCommit message (Collapse)Author
2015-04-22Merge branch 'obsd-master'Thomas Adam
2015-04-21Don't eat the mouse event that triggers a drag end because we may wantnicm
to pass it on to application inside the pane.
2015-04-20Merge branch 'obsd-master'Thomas Adam
2015-04-19Rewrite of tmux mouse support which was a mess. Instead of havingnicm
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.
2015-04-19Merge branch 'obsd-master'Thomas Adam
2015-03-31Fix some format specifier nits, from Ben Boeckel.nicm
2014-11-09Merge branch 'obsd-master'Thomas Adam
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-11-05Tidy up mode-mouse check.nicm
2014-08-09Merge branch 'obsd-master'Thomas Adam
Conflicts: client.c
2014-07-21Revert the up/down wheel emulation for now, there will be a better waynicm
to do this along later for those who want it.
2014-07-21Drop explicit support for F13-F20 and change to match the xterm terminfonicm
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.
2014-05-13Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c window.c
2014-05-08Send up and down keys for mouse wheel in alternate screen mode (when itnicm
normally does nothing), from Marcel Partap.
2014-04-24Merge branch 'obsd-master'Thomas Adam
2014-04-24There is no longer a need for a paste_stack struct or for global_buffersnicm
to be global. Move to paste.c.
2014-04-05Merge branch 'obsd-master'Thomas Adam
Conflicts: Makefile tty-keys.c
2014-04-03A couple of trivial mouse-related style nits.nicm
2014-03-31Remove log_debug2 as well and simplify log.c.nicm
2014-03-07Remove log_debug2 as well and simplify log.c.Nicholas Marriott
2013-05-25Merge branch 'obsd-master'Thomas Adam
Conflicts: tmux.h
2013-05-07Don't limit width and height to 222 in standard mouse mode.Nicholas Marriott
2013-03-24Add resize-pane -Z to temporary zoom the active pane to occupy the fullNicholas Marriott
window or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
2013-03-22Support the latest theory for mouse input, this is enabled/disabled withNicholas Marriott
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-24Add resize-pane -Z to temporary zoom the active pane to occupy the full windowNicholas Marriott
or unzoom (restored to the normal layout) if it already zoomed, bound to C-b z by default. The pane is unzoomed on pretty much any excuse whatsoever. We considered making this a new layout but the requirements are quite different from layouts so decided it is better as a special case. Each current layout cell is saved, a temporary one-cell layout generated and all except the active pane set to NULL. Prompted by suggestions and scripts from several. Thanks to Aaron Jensen and Thiago Padilha for testing an earlier version.
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.
2012-11-27Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2012-11-27Support middle-click paste, based on a diff from Ailin Nemui.Nicholas Marriott
2012-10-26Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2012-10-26Make mouse event structure clearer by defining events (up, click, drag)Nicholas Marriott
and simplifying how buttons and wheels are represented, from Ailin Nemui. Should be no functional changes.
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-05-12Sync OpenBSD patchset 1110:Tiago Cunha
Only enter copy mode on scroll up, from Ailin Nemui.
2012-05-05Only enter copy mode on scroll up, from Ailin Nemui.Nicholas Marriott
2012-04-10Sync OpenBSD patchset 1088:Tiago Cunha
Simplify mouse input function.
2012-04-01Simplify mouse input function.Nicholas Marriott
2011-08-04Sync OpenBSD patchset 941:Tiago Cunha
Extend the mode-mouse option to add a third choice which means the mouse does not enter copy mode. Patch from SF bug 3374493. In future the mode-mouse option is likely to die and be broken into several smaller options.
2011-07-30Extend the mode-mouse option to add a third choice which means the mouseNicholas Marriott
does not enter copy mode. Patch from SF bug 3374493. In future the mode-mouse option is likely to die and be broken into several smaller options.
2011-07-09Expand the Id keyword. Tiago Cunha
2011-04-25Sync OpenBSD patchset 896:Tiago Cunha
When mode-mouse is on (it is off by default), automatically enter copy mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
2011-04-19When mode-mouse is on (it is off by default), automatically enter copyNicholas Marriott
mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
2011-01-07Sync OpenBSD patchset 828:Tiago Cunha
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-03Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott
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-03Sync OpenBSD patchset 824:Tiago Cunha
Last few tables that should be const.
2011-01-01Last few tables that should be const.Nicholas Marriott
2010-12-30Sync OpenBSD patchset 812:Tiago Cunha
Support all four of the xterm mouse modes. Based on a diff from hsim at gmx.li.
2010-12-29Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott
gmx.li.
2010-09-07Solaris 9 has no stdint.h, ugh. Reported by a couple of people mostNicholas Marriott
recently Timothy Larson.
2009-12-04Sync OpenBSD patchset 581:Tiago Cunha
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last time now I've configured emacs to make them displayed in really annoying colours...
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
time now I've configured emacs to make them displayed in really annoying colours...