summaryrefslogtreecommitdiffstats
path: root/key-string.c
AgeCommit message (Collapse)Author
2014-07-21Drop explicit support for F13-F20 and change to match the xterm terminfonicm
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.
2013-03-22In terminals with XT, turn on modifyOtherKeys=1 with the escape sequenceNicholas Marriott
and handle the most common set. Pass them through if xterm-keys is on.
2012-03-04Accept hex values as keys, needed for send-keys, based on a diff fromNicholas Marriott
George Nachman.
2012-01-21Drop the ability to have a list of keys in the prefix in favour of twoNicholas Marriott
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 :-).
2011-10-23Alias NPage/PPage as PageDown/PgDn/PageUp/PgUp to reduce occasionalNicholas Marriott
confusion.
2011-01-23Allow top-bit-set characters to be used for key bindings, from TiagoNicholas Marriott
Cunha.
2011-01-01Last few tables that should be const.Nicholas Marriott
2010-06-06Use a macro-based mask for obtaining a key or modifier-set from theNicholas Marriott
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.
2010-06-05Fix binding of C-Space/C-@, from Micah Cowan.Nicholas Marriott
2010-05-03Make C-] and other punctuation-based control key combinations work again.Ryan McBride
ok nicm
2010-04-23When converting A-Z into a control character, want to subtract 64 notNicholas Marriott
65... whoops.
2010-04-21Rewrite key string conversions to be readable and to work properly forNicholas Marriott
multiple modifiers.
2010-01-14Permit S- prefix on keys for shift. Relatively few terminals support thisNicholas Marriott
(basically xterm only) and even fewer have them in terminfo (kLFT2 and kRIT2).
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-26Make types clearer and lint happier.Nicholas Marriott
2009-11-10Lookup key as a named key (eg 'Space') before checking for single characterNicholas Marriott
keys, makes C-Space/M-Space etc resolve to the correct key code.
2009-10-26Rename keypad keys to something more useful.Nicholas Marriott
2009-10-06Accept ^? for backspace as well as BSpace.Nicholas Marriott
2009-10-04Add a key string for space ("Space") and document the names, suggested byNicholas Marriott
guenther@. Also document how to bind " and ', suggested by miod@.
2009-07-28Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.Nicholas Marriott
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-24Accept lowercase c- and m- prefix as well as C- and M-.Nicholas Marriott
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-07-14Add backspace key to named keys.Nicholas Marriott
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