Changes between Initial Version and Version 1 of Ticket #3136, comment 2
- Timestamp:
- 01/07/14 16:53:16 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3136, comment 2
initial v1 7 7 When mc sees "ESC ch1 ch2 ch3" and does not recognize it as a known ESC sequence, it reads and discards all chars: 8 8 9 {{{ 9 10 if (bad_seq) 10 11 { … … 20 21 goto nodelay_try_again; 21 22 } 23 }}} 22 24 23 25 The intent of the code is to drop out of while loop as soon as there is no more input to drop. … … 25 27 The patch as I submitted it was 26 28 29 {{{ 27 30 + int paranoia = 20; 28 31 + while (getch_with_timeout (50*1000) >= 0 && --paranoia != 0) 29 32 + continue; 33 }}} 30 34 31 35 that is, it was using not old_esc_mode_timeout (which by default is 1000 milliseconds = 1 second) … … 34 38 How about reinstating 50*1000 here? 35 39 (It looks like comment needs to be tweaked so that people won't try to "fix" in again). 36 37