[Midnight Commander] #277: mc hangs if mouse support enabled on konsole-256color terminal + PATCH



#277: mc hangs if mouse support enabled on konsole-256color terminal + PATCH
---------------------+------------------------------------------------------
 Reporter:  arekm    |       Owner:       
     Type:  defect   |      Status:  new  
 Priority:  major    |   Milestone:  4.7  
Component:  mc-core  |     Version:  4.6.2
 Keywords:           |    Blocking:       
Blockedby:           |  
---------------------+------------------------------------------------------
 I just switched to TERM=konsole-256color under KDE konsole terminal
 emulator. mc 4.6.2 unfortunately started to hang. Turning mouse support
 (via -d) did workaround the problem.

 It turned out that I needed patch below.

 That code seems not so great since it requires hardcoding every supported
 terminal.


 {{{
 --- mc-4.6.2/src/main.c.org     2009-02-19 15:02:47.391964771 +0100
 +++ mc-4.6.2/src/main.c 2009-02-19 15:04:12.385289852 +0100
 @@ -1385,6 +1385,7 @@
      }

      if (force_xterm || strncmp (termvalue, "xterm", 5) == 0
 +       || strncmp (termvalue, "konsole", 7) == 0
         || strncmp (termvalue, "rxvt", 4) == 0
         || strcmp (termvalue, "Eterm") == 0
         || strcmp (termvalue, "dtterm") == 0) {
 }}}

-- 
Ticket URL: <www.midnight-commander.org/ticket/277>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]