OpenBSD CVS

CVS log for src/usr.bin/tmux/key-string.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.71 / (download) - annotate - [select for diffs], Mon Jan 16 11:26:14 2023 UTC (16 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.70: +3 -1 lines
Diff to previous 1.70 (colored)

Mark keys sent by command and skip paste handling for them.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Nov 1 09:54:13 2022 UTC (18 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.69: +3 -1 lines
Diff to previous 1.69 (colored)

Add modified Tab key sequences, from Aaron Jensen, GitHub issue 3368.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Feb 16 18:55:05 2022 UTC (2 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.68: +43 -1 lines
Diff to previous 1.68 (colored)

Support more mouse buttons when the terminal sends them, GitHub issue
3055.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 16 08:37:58 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.67: +3 -1 lines
Diff to previous 1.67 (colored)

Pass Ctrl keys through as is when given as hex, GitHub issue 2724.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jun 10 07:38:28 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

Move "special" keys into the Unicode PUA rather than making them top bit
set, some compilers do not allow enums that are larger than int. GitHub
issue 2673.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jun 10 07:21:09 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.65: +8 -4 lines
Diff to previous 1.65 (colored)

Add another couple of keys needed for extended keys, GitHub issue 2658.

Handle modifier 9 as Meta, GitHub issue 2647.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Apr 7 15:46:12 2021 UTC (3 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.64: +4 -3 lines
Diff to previous 1.64 (colored)

Restore previous behaviour so that C-X remains the same as C-x. Instead,
translate incoming extended keys so that they are consistent.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Apr 7 07:30:02 2021 UTC (3 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.63: +10 -10 lines
Diff to previous 1.63 (colored)

Fixes for extended keys: 1) allow C-x and C-X to be bound separately
since some terminals report them differently 2) use the "backspace"
option to translate backspace 3) map ctrl which are have the ctrl
implied (such as C-x) properly when the terminal reports both the key
and the modifier.

Note that any key bindings for C-X where C-x is meant must now be
changed.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jul 6 07:27:39 2020 UTC (3 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.62: +31 -29 lines
Diff to previous 1.62 (colored)

Always send xterm-style keys for M-Left and M-Right. GitHub issue 2296.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jun 27 10:19:59 2020 UTC (3 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.61: +23 -9 lines
Diff to previous 1.61 (colored)

Fix 0x Unicode character parsing, GitHub issue 2286.

Revision 1.61 / (download) - annotate - [select for diffs], Mon May 25 18:57:25 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.60: +9 -10 lines
Diff to previous 1.60 (colored)

Use the internal representation for UTF-8 keys instead of wchar_t and
drop some code only needed for that.

Revision 1.60 / (download) - annotate - [select for diffs], Wed May 20 07:11:45 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

Fix a couple more places where the key flags need to be masked off.

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 20 06:13:09 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.58: +21 -21 lines
Diff to previous 1.58 (colored)

Key strings need to include the cursor and keypad flags now since the
output key lookup expects them already set.

Revision 1.58 / (download) - annotate - [select for diffs], Sat May 16 16:35:13 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.57: +34 -15 lines
Diff to previous 1.57 (colored)

Separate key flags and modifiers, log key flags, make the "xterm" flag
more explicit and fix M- keys with a leading escape.

Revision 1.57 / (download) - annotate - [select for diffs], Sat May 16 16:33:16 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Rename KEYC_ESCAPE to KEYC_META.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 9 13:52:31 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.55: +2 -4 lines
Diff to previous 1.55 (colored)

Some unnecessary assignments and unused variables.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Mar 31 11:38:35 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored)

Add a "second click" key type which is fired for the second click of a
double click, even if the timer hasn't expired to confirm it isn't
actually a triple click. Provides a way for people who don't care about
triple clicks or can make their commands have no side effects to avoid
the double click timer delay.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Mar 15 20:35:52 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.53: +5 -10 lines
Diff to previous 1.53 (colored)

Fix C-Space key string.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Feb 19 14:25:00 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.52: +80 -48 lines
Diff to previous 1.52 (colored)

A few fixes to make modifier keys and dragging work - need to remove the
modifiers before checking for the dragging marker key, and apply them
before looking up the end key. Also fix key-to-string with modifiers for
special keys.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 14 07:55:01 2019 UTC (4 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.51: +9 -5 lines
Diff to previous 1.51 (colored)

Add an option to set the key sent by backspace for those whose system
uses ^H rather than ^?. GitHub issue 1969.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jul 9 14:03:12 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.50: +7 -1 lines
Diff to previous 1.50 (colored)

Add a -H flag to send-keys to send literal keys given as hex numbers
(needed for control clients to send mouse sequences). Also add some
format flags for UTF-8 and SGR mouse mode. Requested by Bradley Smith in
GitHub issues 1832 and 1833.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 18 08:38:01 2018 UTC (5 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

Support for windows larger than visible on the attached client. This has
been a limitation for a long time.

There are two new options, window-size and default-size, and a new
command, resize-window. The force-width and force-height options and the
session_width and session_height formats have been removed.

The new window-size option tells tmux how to work out the size of
windows: largest means it picks the size of the largest session,
smallest the smallest session (similar to the old behaviour) and manual
means that it does not automatically resize windows. The default is
currently largest but this may change. aggressive-resize modifies the
choice of session for largest and smallest as it did before.

If a window is in a session attached to a client that is too small, only
part of the window is shown. tmux attempts to keep the cursor visible,
so the part of the window displayed is changed as the cursor moves (with
a small delay, to try and avoid excess redrawing when applications
redraw status lines or similar that are not currently visible). The
offset of the visible portion of the window is shown in status-right.

Drawing windows which are larger than the client is not as efficient as
those which fit, particularly when the cursor moves, so it is
recommended to avoid using this on slow machines or networks (set
window-size to smallest or manual).

The resize-window command can be used to resize a window manually. If it
is used, the window-size option is automatically set to manual for the
window (undo this with "setw -u window-size"). resize-window works in a
similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and
-A flags. -a sets the window to the size of the smallest client (what it
would be if window-size was smallest) and -A the largest.

For the same behaviour as force-width or force-height, use resize-window
-x or -y, and "setw -u window-size" to revert to automatic sizing..

If the global window-size option is set to manual, the default-size
option is used for new windows. If -x or -y is used with new-session,
that sets the default-size option for the new session.

The maximum size of a window is 10000x10000. But expect applications to
complain and much higher memory use if making a window excessively
big. The minimum size is the size required for the current layout
including borders.

The refresh-client command can be used to pan around a window, -U -D -L
-R moves up, down, left or right and -c returns to automatic cursor
tracking. The position is reset when the current window is changed.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Aug 22 20:06:14 2018 UTC (5 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.48: +5 -1 lines
Diff to previous 1.48 (colored)

Add StatusLeft and StatusRight mouse key modifiers for the left and
right parts of the status line.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 16 08:48:22 2018 UTC (5 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.47: +6 -2 lines
Diff to previous 1.47 (colored)

Add an "Any" key to run a command if a key is pressed that is not bound
in the current key table. GitHub issue 1404.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jun 23 15:36:52 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.46: +10 -2 lines
Diff to previous 1.46 (colored)

Add user-keys option to allow user-defined keys to be set, from Dan
Aloni.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 12 07:04:24 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.45: +5 -1 lines
Diff to previous 1.45 (colored)

Add explicit keys for the bracketed paste sequences, both to avoid mix
ups with other keys and to make logs clearer.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 22 09:01:32 2017 UTC (7 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Minor bits: fix an array size, add comment, make grid_cell_entry static.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 1 09:55:07 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.43: +7 -1 lines
Diff to previous 1.43 (colored)

Implement "all event" (1003) mouse mode but in a way that works. The
main issue is that if we have two panes, A with 1002 and B with 1003, we
need to set 1003 outside tmux in order to get all the mouse events, but
then we need to suppress the ones that pane A doesn't want. This is easy
in SGR mouse mode, because buttons == 3 is only used for movement events
(for other events the trailing m/M marks a release instead), but in
normal mouse mode we can't tell so easily. So for that, look at the
previous event instead - if it is drag+release as well, then the current
event is a movement event.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jan 11 22:36:07 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.42: +7 -1 lines
Diff to previous 1.42 (colored)

Add some missing special keys to key_string_lookup_key, fix a mouse
check in server_client_handle_key, and tweak a comment.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 5 09:07:16 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Highlight all occurrences of search string after searching in copy mode.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Nov 23 16:44:42 2016 UTC (7 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.40: +5 -2 lines
Diff to previous 1.40 (colored)

Error on invalid modifier keys.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 11 09:30:36 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.39: +7 -1 lines
Diff to previous 1.39 (colored)

Support double and triple clicks (they are cumulative, so double is
fired then triple), and use for select-word and select-line in copy
mode. Inspired by a different solution from Omar Sandoval.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Oct 10 21:29:23 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Loads more static, except for cmd-*.c and window-*.c.

Revision 1.38 / (download) - annotate - [select for diffs], Thu May 26 14:49:48 2016 UTC (7 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

Extend 0x1234 keys form to more bits so that Unicode keys work.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 25 17:05:53 2016 UTC (8 years ago) by nicm
Branch: MAIN
Changes since 1.36: +5 -3 lines
Diff to previous 1.36 (colored)

Don't overwrite modifiers in the buffer when making UTF-8 strings,
append instead.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Mar 18 07:28:27 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored)

Instead of reusing MouseUp at the finish of a drag, add a new key
MouseDragEnd. It can be useful to bind them separately in copy mode.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 2 15:36:02 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)

Handle wcwidth() and mbtowc() failures in better style and drop
characters where we can't find the width (wcwidth() fails) on input, the
same as we drop invalid UTF-8. Suggested by schwarze@.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Dec 12 18:19:00 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.32: +25 -17 lines
Diff to previous 1.32 (colored)

Allow prefix and prefix2 to be set to None to disable (useful if you
would rather bind the prefix in the root table).

Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 14 11:45:43 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

All these return values from utf8_* are confusing, use an enum.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Nov 14 10:57:59 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Couple of assignments to remove compiler warnings.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Nov 14 10:56:31 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

Be more strict about invalid UTF-8.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 12 22:04:37 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.28: +11 -11 lines
Diff to previous 1.28 (colored)

Rename overly-long utf8data to ud throughout.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 12 11:05:34 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.27: +44 -21 lines
Diff to previous 1.27 (colored)

Support UTF-8 key bindings by expanding the key type from int to
uint64_t and converting UTF-8 to Unicode on input and the reverse on
output. (This allows key bindings, there are still omissions - the
largest being that the various prompts do not accept UTF-8.)

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 26 22:03:04 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored)

Handle unknown keys more gracefully, return a string instead of NULL.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 19 21:34:21 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.25: +17 -2 lines
Diff to previous 1.25 (colored)

Rewrite of tmux mouse support which was a mess. Instead of having
options for "mouse-this" and "mouse-that", mouse events may be bound as
keys and there is one option "mouse" that turns on mouse support
entirely (set -g mouse on).

See the new MOUSE SUPPORT section of the man page for description of the
key names and new flags (-t= to specify the pane or window under mouse
as a target, and send-keys -M to pass through a mouse event).

The default builtin bindings for the mouse are:

    bind -n   MouseDown1Pane select-pane -t=; send-keys -M
    bind -n MouseDown1Status select-window -t=
    bind -n   MouseDrag1Pane copy-mode -M
    bind -n MouseDrag1Border resize-pane -M

To get the effect of turning mode-mouse off, do:

    unbind -n MouseDrag1Pane
    unbind -temacs-copy MouseDrag1Pane

The old mouse options are now gone, set-option -q may be used to
suppress warnings if mixing configuration files.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 21 10:25:48 2014 UTC (9 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.24: +1 -9 lines
Diff to previous 1.24 (colored)

Drop explicit support for F13-F20 and change to match the xterm terminfo
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.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 22 10:30:04 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.23: +7 -6 lines
Diff to previous 1.23 (colored)

In terminals with XT, turn on modifyOtherKeys=1 with the escape sequence
and handle the most common set. Pass them through if xterm-keys is on.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 4 20:40:54 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.22: +10 -1 lines
Diff to previous 1.22 (colored)

Accept hex values as keys, needed for send-keys, based on a diff from
George Nachman.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 21 08:40:09 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored)

Drop the ability to have a list of keys in the prefix in favour of two
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 :-).

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 23 10:19:26 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.20: +5 -1 lines
Diff to previous 1.20 (colored)

Alias NPage/PPage as PageDown/PgDn/PageUp/PgUp to reduce occasional
confusion.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 23 11:04:25 2011 UTC (13 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.19: +6 -4 lines
Diff to previous 1.19 (colored)

Allow top-bit-set characters to be used for key bindings, from Tiago
Cunha.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 1 03:43:20 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Last few tables that should be const.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 6 19:00:13 2010 UTC (13 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.17: +11 -2 lines
Diff to previous 1.17 (colored)

Use a macro-based mask for obtaining a key or modifier-set from the
combination. Display C-@, etc, as C-Space, in list-keys. By Micah Cowan.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 5 15:51:53 2010 UTC (13 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.16: +20 -21 lines
Diff to previous 1.16 (colored)

Fix binding of C-Space/C-@, from Micah Cowan.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 3 09:38:03 2010 UTC (14 years ago) by mcbride
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Make C-] and other punctuation-based control key combinations work again.

ok nicm

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 23 14:27:04 2010 UTC (14 years ago) by nicm
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

When converting A-Z into a control character, want to subtract 64 not
65... whoops.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 21 21:17:33 2010 UTC (14 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.13: +90 -112 lines
Diff to previous 1.13 (colored)

Rewrite key string conversions to be readable and to work properly for
multiple modifiers.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 14 21:53:40 2010 UTC (14 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.12: +20 -1 lines
Diff to previous 1.12 (colored)

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).

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 3 22:50:10 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

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...

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 26 22:56:59 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

Make types clearer and lint happier.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 10 17:24:43 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.9: +40 -19 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 26 13:13:33 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.8: +17 -17 lines
Diff to previous 1.8 (colored)

Rename keypad keys to something more useful.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 6 07:32:26 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Accept ^? for backspace as well as BSpace.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 4 08:50:05 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Add a key string for space ("Space") and document the names, suggested by
guenther@. Also document how to bind " and ', suggested by miod@.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 28 09:18:01 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.5: +8 -5 lines
Diff to previous 1.5 (colored)

Accept and print "Enter" and "Escape" for keys rather than C-m and C-[.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 26 21:42:08 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

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.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 24 14:57:22 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Accept lowercase c- and m- prefix as well as C- and M-.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 21 17:57:29 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored)

Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 14 06:56:30 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add backspace key to named keys.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 22:58:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6

Import tmux, a terminal multiplexor allowing (among other things) a single
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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.