| 353 |
} |
} |
| 354 |
|
|
| 355 |
// For debug |
// For debug |
| 356 |
// for (int j = pos; j < len; j++) |
#ifdef _DEBUG |
| 357 |
// { |
for (int j = pos; j < len; j++) |
| 358 |
// log_common("Debug: <--[%u]\n", (buf[j] + 256) % 256); |
{ |
| 359 |
// } |
log_common("Debug: <--[%u]\n", (buf[j] + 256) % 256); |
| 360 |
|
} |
| 361 |
|
#endif |
| 362 |
} |
} |
| 363 |
|
|
| 364 |
fcntl(STDIN_FILENO, F_SETFL, flags); |
fcntl(STDIN_FILENO, F_SETFL, flags); |
| 813 |
} |
} |
| 814 |
|
|
| 815 |
// for debug |
// for debug |
| 816 |
// if (out != KEY_TIMEOUT && out != KEY_NULL) |
#ifdef _DEBUG |
| 817 |
// { |
if (out != KEY_TIMEOUT && out != KEY_NULL) |
| 818 |
// log_common("Debug: -->[0x %x]\n", out); |
{ |
| 819 |
// } |
log_common("Debug: -->[0x %x]\n", out); |
| 820 |
|
} |
| 821 |
|
#endif |
| 822 |
|
|
| 823 |
return out; |
return out; |
| 824 |
} |
} |