summaryrefslogtreecommitdiffstats
path: root/input-keys.c
AgeCommit message (Collapse)Author
2012-07-11Sync OpenBSD patchset 1150:Tiago Cunha
xfree is not particularly helpful, remove it. From Thomas Adam.
2012-05-12Sync OpenBSD patchset 1110:Tiago Cunha
Only enter copy mode on scroll up, from Ailin Nemui.
2012-04-10Sync OpenBSD patchset 1088:Tiago Cunha
Simplify mouse input function.
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-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-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-03Sync OpenBSD patchset 824:Tiago Cunha
Last few tables that should be const.
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-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-11-28Sync OpenBSD patchset 562:Tiago Cunha
Output the right keys for application and number keypad modes (they were the wrong way round).
2009-11-10Sync OpenBSD patchset 525:Tiago Cunha
Don't output rxvtisms either.
2009-11-08Sync OpenBSD patchset 502:Tiago Cunha
It would help if I read my own comments... make alt keys work again by sending alt AND the key not alt instead of it.
2009-11-08Sync OpenBSD patchset 498:Tiago Cunha
Convert the window pane (pty master side) fd over to use a bufferevent. 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-28Sync OpenBSD patchset 460:Tiago Cunha
Not all terminals swap CSI and SS3 on ctrl, so remove that. Also mark the rxvt special-cases as such until terminfo is updated to have kLFT5, kRIT5 etc.
2009-10-28Sync OpenBSD patchset 459:Tiago Cunha
Rewrite xterm-keys code (both input and output) so that works (doesn't always output the same modifiers, accepts all the possible input keys) and is more understandable.
2009-10-28Sync OpenBSD patchset 457:Tiago Cunha
On second thoughts, drop the rxvt output entirely.
2009-10-28Sync OpenBSD patchset 456:Tiago Cunha
Set the output code for ctrl+cursor keys correctly, and disable (comment) rxvt-style output.
2009-10-28Sync OpenBSD patchset 453:Tiago Cunha
Drop INPUTKEY_CTRL and just handle it as part of the table.
2009-10-28Sync OpenBSD patchset 452:Tiago Cunha
Add or fix some comments.
2009-10-28Sync OpenBSD patchset 451:Tiago Cunha
Tidy up table.
2009-10-28Sync OpenBSD patchset 450:Tiago Cunha
Rename keypad keys to something more useful.
2009-10-28Sync OpenBSD patchset 449:Tiago Cunha
Remove the xterm-keys code which is broken (a replacement is coming but some more cleanup is needed first).
2009-10-12Sync OpenBSD patchset 381:Tiago Cunha
Clean up by introducing a wrapper struct for mouse clicks rather than passing 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-28Sync OpenBSD patchset 184:Tiago Cunha
Detect backspace by looking at termios VERASE and translate it into \177 (which 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-22Sync OpenBSD patchset 151:Tiago Cunha
Tidy up keys: use an enum for the key codes, and remove the macros which just wrap flag sets/clears/tests.
2009-05-04Space trimmage mega-diff.Nicholas Marriott
2009-03-02Extra function keys from Dashing dashing at hushmail dot comNicholas Marriott
2009-01-28* Better support for at least the most common variant of mouse input: parse ↵Nicholas Marriott
it and adjust for different panes. Also support mouse in window/session choice mode. * Bring back the fancy window titles with session/window names: it is easy to work around problems with elinks (see FAQ).
2009-01-12Make shift arrow keys work.Nicholas Marriott
2009-01-12More hacks for key handling.Nicholas Marriott
2009-01-12Handle ctrl/shift modifiers better.Nicholas Marriott
2009-01-11Window splitting. Two vertical panes fixed 50% each. This is a huge diff, ↵Nicholas Marriott
still a couple of bugs (notably heap corruption somewhere causing segfault on exit).
2009-01-10Support btab.Nicholas Marriott
2009-01-10Trim spaces.Nicholas Marriott
2009-01-09Update key handling code. Simplify, support ctrl properly and add a new ↵Nicholas Marriott
window option (xterm-keys) to output xterm key codes including ctrl and, if available, alt and shift.
2009-01-08Give up the farce of caring about any keys aside from the ones in the screen ↵Nicholas Marriott
termcap and the ones termcap doesn't handle that we hardcode manually.
2009-01-07Introduce nitems() and use it; use bsearch.Nicholas Marriott
2008-12-22Make home and end work.Nicholas Marriott
2008-07-24Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these ↵Nicholas Marriott
separately but forgot :-/.
2008-07-24Handle kcursor+kkeypad (switch to OA from [A).Nicholas Marriott
2008-07-23Revert this, it breaks emacs.Nicholas Marriott
2008-07-23Support keypad. Change cursor key output.Nicholas Marriott
2008-06-25Handle escaped keys properly and use M-f/M-b in copy mode.Nicholas Marriott
2008-06-23IRIX fixes thanks to Elias Pipping.Nicholas Marriott
2008-06-18Trimify.Nicholas Marriott
2008-06-06Some Linux fixes; some code tidying. Don't redraw status bar so often.Nicholas Marriott
2008-01-03Some key tweaks, fix status bar to not rely on attr.Nicholas Marriott
2007-12-01home and end appear to be find/select with rxvt...Nicholas Marriott