summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/key-string.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Drop explicit support for F13-F20 and change to match the xterm terminfonicm2014-07-211-9/+1
| | | | | | | | | | | | | 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.
* In terminals with XT, turn on modifyOtherKeys=1 with the escape sequencenicm2013-03-221-6/+7
| | | | and handle the most common set. Pass them through if xterm-keys is on.
* Accept hex values as keys, needed for send-keys, based on a diff fromnicm2012-03-041-1/+10
| | | | George Nachman.
* Drop the ability to have a list of keys in the prefix in favour of twonicm2012-01-211-1/+5
| | | | | | | | | | separate options, prefix and prefix2. This simplifies the code and gets rid the data options type which was only used for this one option. Also add a -2 flag to send-prefix to send the secondary prefix key, fixing a cause of minor irritation. People who want three prefix keys are out of luck :-).
* Alias NPage/PPage as PageDown/PgDn/PageUp/PgUp to reduce occasionalnicm2011-10-231-1/+5
| | | | confusion.
* Allow top-bit-set characters to be used for key bindings, from Tiagonicm2011-01-231-4/+6
| | | | Cunha.
* Last few tables that should be const.nicm2011-01-011-2/+2
|
* Use a macro-based mask for obtaining a key or modifier-set from thenicm2010-06-061-2/+11
| | | | combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
* Fix binding of C-Space/C-@, from Micah Cowan.nicm2010-06-051-21/+20
|
* Make C-] and other punctuation-based control key combinations work again.mcbride2010-05-031-2/+2
| | | | ok nicm
* When converting A-Z into a control character, want to subtract 64 notnicm2010-04-231-2/+2
| | | | 65... whoops.
* Rewrite key string conversions to be readable and to work properly fornicm2010-04-211-114/+92
| | | | multiple modifiers.
* Permit S- prefix on keys for shift. Relatively few terminals support thisnicm2010-01-141-1/+20
| | | | (basically xterm only) and even fewer have them in terminfo (kLFT2 and kRIT2).
* Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastnicm2009-12-031-3/+3
| | | | | time now I've configured emacs to make them displayed in really annoying colours...
* Make types clearer and lint happier.nicm2009-11-261-6/+6
|
* Lookup key as a named key (eg 'Space') before checking for single characternicm2009-11-101-19/+40
| | | | keys, makes C-Space/M-Space etc resolve to the correct key code.
* Rename keypad keys to something more useful.nicm2009-10-261-17/+17
|
* Accept ^? for backspace as well as BSpace.nicm2009-10-061-1/+3
|
* Add a key string for space ("Space") and document the names, suggested bynicm2009-10-041-1/+2
| | | | guenther@. Also document how to bind " and ', suggested by miod@.
* Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.nicm2009-07-281-5/+8
|
* Detect backspace by looking at termios VERASE and translate it into \177 (whichnicm2009-07-261-2/+2
| | | | | | 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.
* Accept lowercase c- and m- prefix as well as C- and M-.nicm2009-07-241-4/+4
|
* Tidy up keys: use an enum for the key codes, and remove the macros which justnicm2009-07-211-10/+10
| | | | wrap flag sets/clears/tests.
* Add backspace key to named keys.nicm2009-07-141-1/+2
|
* Import tmux, a terminal multiplexor allowing (among other things) a singlenicm2009-06-011-0/+198
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