I want to make Putty recognize shift arrow sequences
as i know for example ^[[A means up and ^[[1;2A is shift+up
I’ve modified putty source code as following
if (shift_state == 1)
if (app_flg)
p += sprintf((char *) p, "\x1BO1;2%c", xkey);
else
p += sprintf((char *) p, "\x1B[1;2%c", xkey);
else
if (app_flg)
p += sprintf((char *) p, "\x1BO%c", xkey);
else
p += sprintf((char *) p, "\x1B[%c", xkey);
instead of
if (app_flg)
p += sprintf((char *) p, "\x1BO%c", xkey);
else
p += sprintf((char *) p, "\x1B[%c", xkey);
by running cat -vt putty seams to provide correct key code to terminal but in emacs i still can’t shift select text (instead it puts text ;2A for up etc.)
running begPutty which already contains this fix (also i don’t have source code for it) cat -vt prints the same key codes when using shift arrows and works fine in emacs.
Basically i want to implement begPutty functionality fixes for keycodes but i don’t have it’s source code
I’ve added emacs as a tag as my opinion is that the problem is in emacs not recognizing your escape sequence and not in your modification of putty.
Could you try with
in your .emacs, relaunch emacs, press shift up and then CTRL-H L. Emacs should then show you how it interpreted your key press.