trash_input_buf(); got_int = TRUE; } ! ! if (string[0] == CSI) ! { ! /* Insert CSI as K_CSI. */ ! string[1] = KS_EXTRA; ! string[2] = KE_CSI; ! add_to_input_buf(string, 3); ! } ! else ! add_to_input_buf(string, 1); } static void *************** *** 871,884 **** --- 880,901 ---- string[len++] = KS_MODIFIER; string[len++] = modifiers; } + if (IS_SPECIAL(ch)) { string[len++] = CSI; string[len++] = K_SECOND(ch); string[len++] = K_THIRD(ch); } + else if (ch == CSI) + { + string[len++] = CSI; + string[len++] = KS_EXTRA; + string[len++] = KE_CSI; + } else string[len++] = ch; + add_to_input_buf(string, len); } *** ../vim-5.6.73/src/keymap.h Thu Mar 23 17:46:04 2000 --- src/keymap.h Sun Apr 16 11:24:45 2000 *************** *** 206,212 **** KE_MOUSEUP, /* scroll wheel pseudo-button Up */ KE_KINS, /* keypad Insert key */ ! KE_KDEL /* keypad Delete key */ }; /* --- 206,214 ---- KE_MOUSEUP, /* scroll wheel pseudo-button Up */ KE_KINS, /* keypad Insert key */ ! KE_KDEL, /* keypad Delete key */ ! ! KE_CSI /* CSI typed directly */ }; /* *************** *** 350,355 **** --- 352,359 ---- #define K_SELECT TERMCAP2KEY(KS_SELECT, K_FILLER) #define K_TEAROFF TERMCAP2KEY(KS_TEAROFF, K_FILLER) + + #define K_CSI TERMCAP2KEY(KS_EXTRA, KE_CSI) /* * Symbols for pseudo keys which are translated from the real key symbols *** ../vim-5.6.73/src/misc2.c Thu Mar 23 17:46:04 2000 --- src/misc2.c Sun Apr 16 12:04:07 2000 *************** *** 1335,1340 **** --- 1335,1342 ---- {K_BS, (char_u *)"BS"}, {K_BS, (char_u *)"BackSpace"}, /* Alternative name */ {ESC, (char_u *)"Esc"}, + {CSI, (char_u *)"CSI"}, + {K_CSI, (char_u *)"xCSI"}, {'|', (char_u *)"Bar"}, {'\\', (char_u *)"Bslash"}, {K_DEL, (char_u *)"Del"}, *** ../vim-5.6.73/src/version.c Thu Jun 1 19:39:20 2000 --- src/version.c Thu Jun 1 19:43:35 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 74, /**/ -- A special cleaning ordinance bans housewives from hiding dirt and dust under a rug in a dwelling. [real standing law in Pennsylvania, United States of America] /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/ .