Changes between Initial Version and Version 1 of Ticket #2988, comment 11
- Timestamp:
- 01/07/14 16:56:37 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2988, comment 11
initial v1 1 1 Patch has been changed a bit: "discard garbage" bit of code was 2 2 3 {{{ 3 4 int paranoia = 20; 4 5 while (getch_with_timeout (50*1000) >= 0 && --paranoia != 0) 5 6 continue; 7 }}} 6 8 7 9 in my patch, but in mc-4.8.11 it is 8 10 11 {{{ 9 12 int paranoia = 20; 10 13 while (getch_with_timeout (old_esc_mode_timeout) >= 0 && --paranoia != 0) 11 14 ; 15 }}} 12 16 13 17 This 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: