Changes between Initial Version and Version 1 of Ticket #2988, comment 11


Ignore:
Timestamp:
01/07/14 16:56:37 (11 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2988, comment 11

    initial v1  
    11Patch has been changed a bit: "discard garbage" bit of code was  
    22 
     3{{{ 
    34                    int paranoia = 20; 
    45                    while (getch_with_timeout (50*1000) >= 0 && --paranoia != 0) 
    56                        continue; 
     7}}} 
    68 
    79in my patch, but in mc-4.8.11 it is 
    810 
     11{{{ 
    912                    int paranoia = 20; 
    1013                    while (getch_with_timeout (old_esc_mode_timeout) >= 0 && --paranoia != 0) 
    1114                        ; 
     15}}} 
    1216 
    1317This is wrong. The timeout value here controls how many microseconds mc waits to eat every next "bogus char". It must be big enough to work on serial lines, where it looks like this: