ups with other keys and to make logs clearer.
-/* $OpenBSD: input-keys.c,v 1.60 2017/05/07 21:25:59 nicm Exp $ */
+/* $OpenBSD: input-keys.c,v 1.61 2017/06/12 07:04:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Backspace key. */
{ KEYC_BSPACE, "\177", 0 },
+ /* Paste keys. */
+ { KEYC_PASTE_START, "\033[200~", 0 },
+ { KEYC_PASTE_END, "\033[201~", 0 },
+
/* Function keys. */
{ KEYC_F1, "\033OP", 0 },
{ KEYC_F2, "\033OQ", 0 },
-/* $OpenBSD: key-string.c,v 1.45 2017/02/22 09:01:32 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.46 2017/06/12 07:04:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
return ("FocusIn");
if (key == KEYC_FOCUS_OUT)
return ("FocusOut");
+ if (key == KEYC_PASTE_START)
+ return ("PasteStart");
+ if (key == KEYC_PASTE_END)
+ return ("PasteEnd");
if (key == KEYC_MOUSE)
return ("Mouse");
if (key == KEYC_DRAGGING)
-/* $OpenBSD: tmux.h,v 1.785 2017/06/09 16:01:39 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.786 2017/06/12 07:04:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
KEYC_FOCUS_IN = KEYC_BASE,
KEYC_FOCUS_OUT,
+ /* Paste brackets. */
+ KEYC_PASTE_START,
+ KEYC_PASTE_END,
+
/* Mouse keys. */
KEYC_MOUSE, /* unclassified mouse event */
KEYC_DRAGGING, /* dragging in progress */
-/* $OpenBSD: tty-keys.c,v 1.97 2017/05/07 21:25:59 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.98 2017/06/12 07:04:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Focus tracking. */
{ "\033[I", KEYC_FOCUS_IN },
{ "\033[O", KEYC_FOCUS_OUT },
+
+ /* Paste keys. */
+ { "\033[200~", KEYC_PASTE_START },
+ { "\033[201~", KEYC_PASTE_END },
};
/* Default terminfo(5) keys. */