summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty-keys.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch tty key input over to happen on a read event. This is a bit morenicm2009-11-051-40/+53
| | | | | | | | | | 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.
* Switch tty fds over to a bufferevent.nicm2009-11-041-11/+14
|
* Not all terminals swap CSI and SS3 on ctrl, so remove that.nicm2009-10-261-15/+12
| | | | | Also mark the rxvt special-cases as such until terminfo is updated to have kLFT5, kRIT5 etc.
* Rewrite xterm-keys code (both input and output) so that works (doesn't alwaysnicm2009-10-261-1/+8
| | | | | output the same modifiers, accepts all the possible input keys) and is more understandable.
* Support the (mostly new) function key+modifier caps (kIC-kIC7). Most of thesenicm2009-10-261-1/+63
| | | | | will be caught (soon) by the xterm keys code in xterm itself but some other descriptions such as rxvt define them as well.
* As we always put the cursor keys into application mode, assume keys sentnicm2009-10-261-6/+15
| | | | | | with CSI have ctrl. Also add a couple of comments.
* Tidy up table.nicm2009-10-261-75/+71
|
* Rename keypad keys to something more useful.nicm2009-10-261-17/+17
|
* Remove the xterm-keys code which is broken (a replacement is coming but somenicm2009-10-261-77/+4
| | | | more cleanup is needed first).
* Clean up by introducing a wrapper struct for mouse clicks rather than passingnicm2009-10-111-11/+12
| | | | | | | 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.
* Regularise some fatal messages.nicm2009-09-201-3/+3
|
* Detect backspace by looking at termios VERASE and translate it into \177 (whichnicm2009-07-261-1/+13
| | | | | | 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.
* Tidy up keys: use an enum for the key codes, and remove the macros which justnicm2009-07-211-24/+19
| | | | wrap flag sets/clears/tests.
* Import tmux, a terminal multiplexor allowing (among other things) a singlenicm2009-06-011-0/+412
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