Changes between Initial Version and Version 1 of Ticket #3136, comment 2


Ignore:
Timestamp:
01/07/14 16:53:16 (6 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3136, comment 2

    initial v1  
    77When mc sees "ESC ch1 ch2 ch3" and does not recognize it as a known ESC sequence, it reads and discards all chars: 
    88 
     9{{{ 
    910        if (bad_seq) 
    1011        { 
     
    2021            goto nodelay_try_again; 
    2122        } 
     23}}} 
    2224 
    2325The intent of the code is to drop out of while loop as soon as there is no more input to drop. 
     
    2527The patch as I submitted it was 
    2628 
     29{{{ 
    2730+                    int paranoia = 20; 
    2831+                    while (getch_with_timeout (50*1000) >= 0 && --paranoia != 0) 
    2932+                        continue; 
     33}}} 
    3034 
    3135that is, it was using not old_esc_mode_timeout (which by default is 1000 milliseconds = 1 second) 
     
    3438How about reinstating 50*1000 here? 
    3539(It looks like comment needs to be tweaked so that people won't try to "fix" in again). 
    36  
    37