Ticket #1974: mc-4.7.0.1.patch

File mc-4.7.0.1.patch, 1.4 KB (added by mirkobau, 15 years ago)
  • src/main.c

    diff -Naur mc-4.7.0.1/src/main.c mc-4.7.0.1.patched/src/main.c
    old new  
    14081408        use_mouse_p = MOUSE_DISABLED; 
    14091409    } 
    14101410 
    1411     if (mc_args__force_xterm || strncmp (termvalue, "xterm", 5) == 0 
     1411    if (mc_args__force_xterm 
     1412        || strncmp (termvalue, "xterm", 5) == 0 
     1413        || strncmp (termvalue, "putty", 5) == 0 // http://www.midnight-commander.org/ticket/1974 
    14121414        || strncmp (termvalue, "konsole", 7) == 0 
    14131415        || strncmp (termvalue, "rxvt", 4) == 0 
    14141416        || strcmp (termvalue, "Eterm") == 0 
  • src/tty/key.c

    diff -Naur mc-4.7.0.1/src/tty/key.c mc-4.7.0.1.patched/src/tty/key.c
    old new  
    10491049        || (term != NULL 
    10501050            && (strncmp (term, "iris-ansi", 9) == 0 
    10511051                || strncmp (term, "xterm", 5) == 0 
    1052                 || strncmp (term, "rxvt", 4) == 0 || strcmp (term, "screen") == 0))) 
     1052                || strncmp (term, "putty", 5) == 0 // http://www.midnight-commander.org/ticket/1974 
     1053                || strncmp (term, "rxvt", 4) == 0 
     1054                || strcmp (term, "screen") == 0))) 
    10531055        define_sequences (xterm_key_defines); 
    10541056 
    10551057    /* load some additional keys (e.g. direct Alt-? support) */