/[LeafOK_CVS]/lbbs/src/io.c
ViewVC logotype

Diff of /lbbs/src/io.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 by sysadm, Wed May 28 05:47:37 2025 UTC Revision 1.38 by sysadm, Wed Jun 4 13:42:53 2025 UTC
# Line 309  int igetch(int timeout) Line 309  int igetch(int timeout)
309                  // For debug                  // For debug
310                  // for (int j = pos; j < len; j++)                  // for (int j = pos; j < len; j++)
311                  // {                  // {
312                  //      log_std("Debug: <--[%u]\n", (buf[j] + 256) % 256);                  //      log_common("Debug: <--[%u]\n", (buf[j] + 256) % 256);
313                  // }                  // }
314          }          }
315    
# 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          // {          // {
749          //      log_std ("Debug: -->[0x %x]\n", out);          //      log_common ("Debug: -->[0x %x]\n", out);
750          // }          // }
751    
752          return out;          return out;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1