summaryrefslogtreecommitdiffstats
path: root/key-string.c
AgeCommit message (Collapse)Author
2010-06-05Use a macro-based mask for obtaining a key or modifier-set from the combination.Micah Cowan
Display C-@, etc, as C-Space, in list-keys.
2010-06-05Allow C-Space to work correctly once again, and forbid nonsensical ↵Micah Cowan
combinations such as C-Enter or C-Escape.
2010-05-14Sync OpenBSD patchset 693:Tiago Cunha
Make C-] and other punctuation-based control key combinations work again. ok nicm
2010-04-23When converting A-Z into a control character, want to subtract 64 notNicholas Marriott
65... whoops.
2010-04-22Sync OpenBSD patchset 685:Tiago Cunha
Rewrite key string conversions to be readable and to work properly for multiple modifiers.
2010-01-17Sync OpenBSD patchset 608:Tiago Cunha
Permit S- prefix on keys for shift. Relatively few terminals support this (basically xterm only) and even fewer have them in terminfo (kLFT2 and kRIT2).
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 572:Tiago Cunha
Make types clearer and lint happier.
2009-11-10Sync OpenBSD patchset 522:Tiago Cunha
Lookup key as a named key (eg 'Space') before checking for single character keys, makes C-Space/M-Space etc resolve to the correct key code.
2009-10-28Sync OpenBSD patchset 450:Tiago Cunha
Rename keypad keys to something more useful.
2009-10-06Sync OpenBSD patchset 363:Tiago Cunha
Accept ^? for backspace as well as BSpace.
2009-10-05Sync OpenBSD patchset 356:Tiago Cunha
Add a key string for space ("Space") and document the names, suggested by guenther@. Also document how to bind " and ', suggested by miod@.
2009-07-28Sync OpenBSD patchset 193:Tiago Cunha
Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.
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-25Sync OpenBSD patchset 176:Tiago Cunha
Accept lowercase c- and m- prefix as well as C- and M-.
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-07-14If it exist, load a system-wide configuration file /etc/tmux.conf before anyNicholas Marriott
user-specified one.
2009-03-02Extra function keys from Dashing dashing at hushmail dot comNicholas Marriott
2009-01-16Add tabs.Nicholas Marriott
2009-01-14Prettify the key strings a little.Nicholas Marriott
2009-01-12Tidy escape modifier (don't know how this worked before...).Nicholas Marriott
2009-01-12Tidy up control key parsing; add shift.Nicholas Marriott
2009-01-09Build array of codes, stop using ncurses global variables and push ncurses ↵Nicholas Marriott
crap into tty-term.c.
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-16Fix C-space and M-space.Nicholas Marriott
2008-07-23Support keypad. Change cursor key output.Nicholas Marriott
2008-06-25Allow use of alt keys. move-window command.Nicholas Marriott
2008-06-04Support binding 27-31.Nicholas Marriott
2007-11-09C-space is "^ " not "^@".Nicholas Marriott
2007-10-19Kill window command. Nuke some backspace stuff.Nicholas Marriott
2007-10-04List keys command.Nicholas Marriott
2007-10-03Key binding, unbinding.Nicholas Marriott