Előző adásunk folytatása: most éppen az lenne jó, ha a 'putty'-t használva is menne az egerentyű.
Tesztek:
$ infocmp putty | grep 'kmous'
kmous=\E[M
rxvt ablakban:
TERM=putty mc
nem megy az egerentyű
Akkor most jöjjön az, hogy megpatcheljük a mc-4.8.10 forrását:
src/mc-4.8.10# diff -u0 lib/tty/tty.cold lib/tty/tty.c
--- lib/tty/tty.cold 2013-06-25 23:29:14.000000000 +0200
+++ lib/tty/tty.c 2013-09-02 16:50:06.000000000 +0200
@@ -107,3 +107,8 @@
- || strncmp (termvalue, "konsole", 7) == 0
- || strncmp (termvalue, "rxvt", 4) == 0
- || strcmp (termvalue, "Eterm") == 0
+ || strcmp (termvalue, "konsole") == 0
+ || strncmp (termvalue, "konsole-", 8) == 0
+ || strcmp (termvalue, "rxvt") == 0
+ || strncmp (termvalue, "rxvt-", 5) == 0
+ || strcmp (termvalue, "putty") == 0
+ || strncmp (termvalue, "putty-", 6) == 0
+ || strcmp (termvalue, "Eterm") == 0
+ || strncmp (termvalue, "Eterm-", 6) == 0