diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-12-03 22:50:09 +0000 |
commit | 15a64b805e46584d37cc6745383709632e287999 (patch) | |
tree | 5a55f5006585c9cdde05163251fd99da243575b5 /xterm-keys.c | |
parent | 6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff) | |
download | rtmux-15a64b805e46584d37cc6745383709632e287999.tar.gz rtmux-15a64b805e46584d37cc6745383709632e287999.tar.bz2 rtmux-15a64b805e46584d37cc6745383709632e287999.zip |
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...
Diffstat (limited to 'xterm-keys.c')
-rw-r--r-- | xterm-keys.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xterm-keys.c b/xterm-keys.c index f0fbf802..e4cb25d1 100644 --- a/xterm-keys.c +++ b/xterm-keys.c @@ -27,11 +27,11 @@ * character: * * 2 Shift - * 3 Alt - * 4 Shift + Alt - * 5 Ctrl - * 6 Shift + Ctrl - * 7 Alt + Ctrl + * 3 Alt + * 4 Shift + Alt + * 5 Ctrl + * 6 Shift + Ctrl + * 7 Alt + Ctrl * 8 Shift + Alt + Ctrl * * Rather than parsing them, just match against a table. @@ -85,7 +85,7 @@ struct xterm_keys_entry xterm_keys_table[] = { { KEYC_DC, "\033[3;_~" }, }; -/* +/* * Match key against buffer, treating _ as a wildcard. Return -1 for no match, * 0 for match, 1 if the end of the buffer is reached (need more data). */ @@ -132,7 +132,7 @@ xterm_keys_modifiers(const char *template, const char *buf, size_t len) case '7': return (KEYC_ESCAPE|KEYC_CTRL); case '8': - return (KEYC_SHIFT|KEYC_ESCAPE|KEYC_CTRL); + return (KEYC_SHIFT|KEYC_ESCAPE|KEYC_CTRL); } return (0); } @@ -206,7 +206,7 @@ xterm_keys_lookup(int key) } if (i == nitems(xterm_keys_table)) return (NULL); - + /* Copy the template and replace the modifier. */ out = xstrdup(entry->template); out[strcspn(out, "_")] = '0' + modifiers; |