summaryrefslogtreecommitdiffstats
path: root/input-keys.c
AgeCommit message (Collapse)Author
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