aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
Commit message (Collapse)AuthorAge
...
* Sync OpenBSD patchset 508:Tiago Cunha2009-11-08
| | | | | | | | | | | | Switch tty key input over to happen on a read event. This is a bit more complicated because of escape input, but in that case instead of processing a key immediately, schedule a timer and reprocess the bufer when it expires. This currently assumes that keys will be atomic (ie that if eg F1 is pressed the entire sequence is present in the buffer). This is usually but not always true, a change in the tree format so it can differentiate potential (partial) key sequences will happens soon and will allow this to be fixed.
* Sync OpenBSD patchset 495:Tiago Cunha2009-11-08
| | | | | Switch tty fds over to a bufferevent.
* Sync OpenBSD patchset 460:Tiago Cunha2009-10-28
| | | | | | | | 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.
* Sync OpenBSD patchset 459:Tiago Cunha2009-10-28
| | | | | | | 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.
* Sync OpenBSD patchset 458:Tiago Cunha2009-10-28
| | | | | | | Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of these will be caught (soon) by the xterm keys code in xterm itself but some other descriptions such as rxvt define them as well.
* Sync OpenBSD patchset 455:Tiago Cunha2009-10-28
| | | | | | | | As we always put the cursor keys into application mode, assume keys sent with CSI have ctrl. Also add a couple of comments.
* Sync OpenBSD patchset 454:Tiago Cunha2009-10-28
| | | | | Tidy up table.
* Sync OpenBSD patchset 450:Tiago Cunha2009-10-28
| | | | | Rename keypad keys to something more useful.
* Sync OpenBSD patchset 449:Tiago Cunha2009-10-28
| | | | | | Remove the xterm-keys code which is broken (a replacement is coming but some more cleanup is needed first).
* Sync OpenBSD patchset 381:Tiago Cunha2009-10-12
| | | | | | | | | 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.
* Sync OpenBSD patchset 332:Tiago Cunha2009-09-20
| | | | | Regularise some fatal messages.
* Sync OpenBSD patchset 184:Tiago Cunha2009-07-28
| | | | | | | | 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.
* Sync OpenBSD patchset 151:Tiago Cunha2009-07-22
| | | | | | Tidy up keys: use an enum for the key codes, and remove the macros which just wrap flag sets/clears/tests.
* RB_INSERT returns &item if already exists, so use that rather than doing aNicholas Marriott2009-05-04
| | | | | check beforehand.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* Remove the right number of characters from the buffer when escape then a cursorNicholas Marriott2009-04-17
| | | | | key (or other key prefixed by \033) is pressed. Reported by Stuart Henderson.
* Extra function keys from Dashing dashing at hushmail dot comNicholas Marriott2009-03-02
|
* Sort out escape key handling so it works.Nicholas Marriott2009-03-02
|
* Don't leak existing keys.Nicholas Marriott2009-02-16
|
* * Better support for at least the most common variant of mouse input: parse ↵Nicholas Marriott2009-01-28
| | | | | | | 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).
* More hacks for key handling.Nicholas Marriott2009-01-12
|
* Handle ctrl/shift modifiers better.Nicholas Marriott2009-01-12
|
* Support btab.Nicholas Marriott2009-01-10
|
* Trim spaces.Nicholas Marriott2009-01-10
|
* Build array of codes, stop using ncurses global variables and push ncurses ↵Nicholas Marriott2009-01-09
| | | | crap into tty-term.c.
* Handle arrow key variants.Nicholas Marriott2009-01-09
|
* Update key handling code. Simplify, support ctrl properly and add a new ↵Nicholas Marriott2009-01-09
| | | | window option (xterm-keys) to output xterm key codes including ctrl and, if available, alt and shift.
* Give up the farce of caring about any keys aside from the ones in the screen ↵Nicholas Marriott2009-01-08
| | | | termcap and the ones termcap doesn't handle that we hardcode manually.
* Introduce nitems() and use it; use bsearch.Nicholas Marriott2009-01-07
|
* Trim.Nicholas Marriott2008-09-26
|
* Support OS X by moving to gettimeofday(2) and adding poll compat from OpenSSH.Nicholas Marriott2008-08-28
|
* Support keypad mode, and get rid of SCREEN_DEF*. Meant to commit these ↵Nicholas Marriott2008-07-24
| | | | separately but forgot :-/.
* Handle kcursor+kkeypad (switch to OA from [A).Nicholas Marriott2008-07-24
|
* Support keypad. Change cursor key output.Nicholas Marriott2008-07-23
|
* Memory leaks.Nicholas Marriott2008-07-23
|
* Handle escaped keys properly and use M-f/M-b in copy mode.Nicholas Marriott2008-06-25
|
* IRIX fixes thanks to Elias Pipping.Nicholas Marriott2008-06-23
|
* Some Linux fixes; some code tidying. Don't redraw status bar so often.Nicholas Marriott2008-06-06
|
* Major reorganisation of screen handling.Nicholas Marriott2007-12-06
|
* Big internal reorganisation to move tty control into parent.Nicholas Marriott2007-11-27