Parent Directory
|
Revision Log
|
Patch
| Revision 1.35 by sysadm, Wed May 28 05:47:37 2025 UTC | Revision 1.37 by sysadm, Wed May 28 11:14:58 2025 UTC | |
|---|---|---|
| # | Line 341 int igetch(int timeout) | Line 341 int igetch(int timeout) |
| 341 | continue; | continue; |
| 342 | } | } |
| 343 | ||
| 344 | if (c == ESC_KEY) | if (c == KEY_ESC) |
| 345 | { | { |
| 346 | if (in_esc == 0) | if (in_esc == 0) |
| 347 | { | { |
| # | Line 352 int igetch(int timeout) | Line 352 int igetch(int timeout) |
| 352 | } | } |
| 353 | else | else |
| 354 | { | { |
| 355 | out = ESC_KEY; | out = KEY_CSI; |
| 356 | in_esc = 0; | in_esc = 0; |
| 357 | break; | break; |
| 358 | } | } |
| # | Line 737 int igetch(int timeout) | Line 737 int igetch(int timeout) |
| 737 | log_error("close(epoll) error (%d)\n"); | log_error("close(epoll) error (%d)\n"); |
| 738 | } | } |
| 739 | ||
| 740 | // For ESC key | |
| 741 | if (out == 0 && in_esc) | |
| 742 | { | |
| 743 | out = KEY_ESC; | |
| 744 | } | |
| 745 | ||
| 746 | // for debug | // for debug |
| 747 | // if (out != KEY_TIMEOUT && out != KEY_NULL) | // if (out != KEY_TIMEOUT && out != KEY_NULL) |
| 748 | // { | // { |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |