From 687d9a40f2b49f8727f029c5013b560be1f18762 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Wed, 25 Mar 2009 21:32:25 +0000 Subject: [PATCH] add ESC seq for begPutty --- src/key.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/key.c b/src/key.c index 6d3002612..247ac77a2 100644 --- a/src/key.c +++ b/src/key.c @@ -265,6 +265,12 @@ static key_define_t xterm_key_defines [] = { { KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "[1;6C", MCKEY_NOACTION }, { KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "[1;6D", MCKEY_NOACTION }, + /* putty */ + { KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, ESC_STR "[[1;6A", MCKEY_NOACTION }, + { KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, ESC_STR "[[1;6B", MCKEY_NOACTION }, + { KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "[[1;6C", MCKEY_NOACTION }, + { KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "[[1;6D", MCKEY_NOACTION }, + /* rxvt keys with modifiers */ { KEY_M_SHIFT | KEY_UP, ESC_STR "[a", MCKEY_NOACTION }, { KEY_M_SHIFT | KEY_DOWN, ESC_STR "[b", MCKEY_NOACTION }, @@ -316,6 +322,10 @@ static key_define_t xterm_key_defines [] = { { KEY_M_SHIFT | KEY_PPAGE, ESC_STR "[5;2~", MCKEY_NOACTION }, { KEY_M_SHIFT | KEY_NPAGE, ESC_STR "[6;2~", MCKEY_NOACTION }, + /* putty */ + { KEY_M_SHIFT | KEY_PPAGE, ESC_STR "[[5;53~", MCKEY_NOACTION }, + { KEY_M_SHIFT | KEY_NPAGE, ESC_STR "[[6;53~", MCKEY_NOACTION }, + /* keypad keys */ { KEY_IC, ESC_STR "Op", MCKEY_NOACTION }, { KEY_DC, ESC_STR "On", MCKEY_NOACTION },