home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / convergent / ctcmd.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  1KB  |  48 lines

  1. /*  C K C M D . H  --  Header file for cmd package  */
  2.  
  3. /* Sizes of things */
  4.  
  5. #define MAXINI 8            /* max number of -o commands */
  6.                     /* with -o command line option */
  7. #define HLPLW  78            /* Width of ?-help line */
  8. #define HLPCW  19            /* Width of ?-help column */
  9. #define CMDBL  200            /* Command buffer length */
  10. #define HLPBL  100            /* Help string buffer length */
  11. #define ATMBL  100            /* Command atom buffer length*/
  12.  
  13. /* Special characters */
  14.  
  15. #define NUL  '\0'            /* Null */
  16. #define HT   '\t'            /* Horizontal Tab */
  17. #define NL   '\n'            /* Newline */
  18. #define FF   0014            /* Formfeed    CTOS "NEXT PAGE" */
  19. #define RDIS 0xf2            /* Redisplay   CTOS "CODE + R" */
  20. #define LDEL 0xf5            /* Delete line CTOS "CODE + U" */
  21. #define WDEL 0xf7            /* Delete word CTOS "CODE + W" */
  22. #define ESC  0033            /* Escape      CTOS "GO" */
  23. #define RUB  0177            /* Rubout      CTOS "DELETE" */
  24.  
  25. #ifndef BEL
  26. #define BEL  0007            /* Bell        CTOS "CANCEL" */
  27. #endif
  28.  
  29. #ifndef BS
  30. #define BS   0010            /* Backspace */
  31. #endif
  32.  
  33. #ifndef SP
  34. #define SP   0040            /* Space */
  35. #endif
  36.  
  37. /* Keyword table flags */
  38.  
  39. #define CM_INV 1            /* Invisible keyword */
  40.  
  41. /* Keyword Table Template */
  42.  
  43. struct keytab {                /* Keyword table */
  44.     char *kwd;                /* Pointer to keyword string */
  45.     int val;                /* Associated value */
  46.     int flgs;                /* Flags (as defined above) */
  47. };
  48.