/[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.39 by sysadm, Thu Jun 5 05:24:56 2025 UTC Revision 1.41 by sysadm, Mon Jun 9 15:39:05 2025 UTC
# Line 311  int igetch(int timeout) Line 311  int igetch(int timeout)
311                                                  }                                                  }
312                                                  else if (ret == 0)                                                  else if (ret == 0)
313                                                  {                                                  {
314                                                            out = 0;
315                                                          break; // Check whether channel is still open                                                          break; // Check whether channel is still open
316                                                  }                                                  }
317                                          }                                          }
# Line 623  int igetch(int timeout) Line 624  int igetch(int timeout)
624                                  in_ascii = 0;                                  in_ascii = 0;
625                                  switch (tmp[4])                                  switch (tmp[4])
626                                  {                                  {
627                                    case 65:
628                                            out = KEY_CTRL_UP;
629                                            break;
630                                    case 66:
631                                            out = KEY_CTRL_DOWN;
632                                            break;
633                                    case 67:
634                                            out = KEY_CTRL_RIGHT;
635                                            break;
636                                    case 68:
637                                            out = KEY_CTRL_LEFT;
638                                            break;
639                                    case 70:
640                                            out = KEY_CTRL_END;
641                                            break;
642                                    case 72:
643                                            out = KEY_CTRL_HOME;
644                                            break;
645                                  case 80:                                  case 80:
646                                          out = KEY_CTRL_F1;                                          out = KEY_CTRL_F1;
647                                          break;                                          break;
# Line 791  int igetch(int timeout) Line 810  int igetch(int timeout)
810          // for debug          // for debug
811          // if (out != KEY_TIMEOUT && out != KEY_NULL)          // if (out != KEY_TIMEOUT && out != KEY_NULL)
812          // {          // {
813          //      log_common ("Debug: -->[0x %x]\n", out);          //      log_common("Debug: -->[0x %x]\n", out);
814          // }          // }
815    
816          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