summaryrefslogtreecommitdiffstats
path: root/input-keys.c
AgeCommit message (Collapse)Author
2015-10-27Move struct options into options.c.nicm
2015-10-26Some extra logging of where keys are actually going.nicm
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-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-03-31Fix some format specifier nits, from Ben Boeckel.nicm
2014-11-05Tidy up mode-mouse check.nicm
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-08Send up and down keys for mouse wheel in alternate screen mode (when itnicm
normally does nothing), from Marcel Partap.
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-03A couple of trivial mouse-related style nits.nicm
2014-03-31Remove log_debug2 as well and simplify log.c.nicm
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.
2012-11-27Support middle-click paste, based on a diff from Ailin Nemui.Nicholas Marriott
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-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-05-05Only enter copy mode on scroll up, from Ailin Nemui.Nicholas Marriott
2012-04-01Simplify mouse input function.Nicholas Marriott
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-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-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-01Last few tables that should be const.Nicholas Marriott
2010-12-29Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott
gmx.li.
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...
2009-11-25Output the right keys for application and number keypad modes (they were theNicholas Marriott
wrong way round).
2009-11-10Don't output rxvtisms either.Nicholas Marriott
2009-11-04It would help if I read my own comments... make alt keys work again by sendingNicholas Marriott
alt AND the key not alt instead of it.
2009-11-04Convert the window pane (pty master side) fd over to use a bufferevent.Nicholas Marriott
The evbuffer API is very similar to the existing tmux buffer API so this was remarkably painless. Not many possible ways to do it, I suppose.
2009-10-26Not all terminals swap CSI and SS3 on ctrl, so remove that.Nicholas Marriott
Also mark the rxvt special-cases as such until terminfo is updated to have kLFT5, kRIT5 etc.
2009-10-26Rewrite xterm-keys code (both input and output) so that works (doesn't alwaysNicholas Marriott
output the same modifiers, accepts all the possible input keys) and is more understandable.
2009-10-26On second thoughts, drop the rxvt output entirely.Nicholas Marriott
2009-10-26Set the output code for ctrl+cursor keys correctly, and disable (comment)Nicholas Marriott
rxvt-style output.
2009-10-26Drop INPUTKEY_CTRL and just handle it as part of the table.Nicholas Marriott
2009-10-26Add or fix some comments.Nicholas Marriott
2009-10-26Tidy up table.Nicholas Marriott
2009-10-26Rename keypad keys to something more useful.Nicholas Marriott
2009-10-26Remove the xterm-keys code which is broken (a replacement is coming but someNicholas Marriott
more cleanup is needed first).
2009-10-11Clean up by introducing a wrapper struct for mouse clicks rather than passingNicholas Marriott
three u_chars around. As a side-effect this fixes incorrectly rejecting high cursor positions (because it was comparing them as signed char), reported by Tom Doherty.
2009-07-26Detect backspace by looking at termios VERASE and translate it into \177 (whichNicholas Marriott
matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs cap is often wrong or missing so it can't be used, and just assuming \177 may be wrong.
2009-07-21Tidy up keys: use an enum for the key codes, and remove the macros which justNicholas Marriott
wrap flag sets/clears/tests.
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti