home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ncr9800 / ckucmd.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  3KB  |  91 lines

  1. /*  C K U C M D . H  --  Header file for Unix cmd package  */
  2.  
  3. /**********************************************************************
  4. *                                                   *
  5. * IVS / MCS-Kermit REL 2                                              *
  6. * source code                                                         *
  7. *                                                                     *
  8. * Change History:                                                     *
  9. *                                                                     *
  10. *                1. Modify C-Kermit(4E) source code to                *
  11. *                   produce new module for MCS/IVS-Kermit             *
  12. *                   ORIGINAL RELEASE                                  *
  13. *                   June 22, 1990                                     *
  14. *                                                                     *
  15. *                                                                     *
  16. ***********************************************************************/
  17.  
  18. /*
  19.  Author: Frank da Cruz (SY.FDC@CU20B),
  20.  Columbia University Center for Computing Activities, January 1985.
  21.  Copyright (C) 1985, Trustees of Columbia University in the City of New York.
  22.  Permission is granted to any individual or institution to use, copy, or
  23.  redistribute this software so long as it is not sold for profit, provided this
  24.  copyright notice is retained.
  25. */
  26.  
  27. /* Special getchars... */
  28.  
  29. #ifdef vax11c
  30. #define getchar()   vms_getchar()
  31. #endif
  32.  
  33. #ifdef aegis
  34. #undef getchar
  35. #define getchar()   coninc(0)
  36. #endif
  37.  
  38. #ifdef AMIGA
  39. #undef getchar
  40. #define getchar() coninc(0)
  41. #endif
  42.  
  43. /* Sizes of things */
  44.  
  45. #define HLPLW  78            /* Width of ?-help line */
  46. #define HLPCW  19            /* Width of ?-help column */
  47. #define CMDBL  200            /* Command buffer length */
  48. #define HLPBL  100            /* Help string buffer length */
  49. #define ATMBL  100            /* Command atom buffer length*/
  50.  
  51. /* Special characters */
  52.  
  53. #ifndef NUL
  54. #define NUL  '\0'            /* Null */
  55. #endif
  56. #define HT   '\t'            /* Horizontal Tab */
  57. #define NL   '\n'            /* Newline */
  58. #ifndef CR
  59. #define CR   '\r'
  60. #endif
  61. #define FF   0014            /* Formfeed    (^L) */
  62. #define RDIS 0022            /* Redisplay   (^R) */
  63. #define LDEL 0025            /* Delete line (^U) */
  64. #define WDEL 0027            /* Delete word (^W) */
  65. #define ESC  0033            /* Escape */
  66. #define RUB  0177            /* Rubout */
  67.  
  68. #ifndef BEL
  69. #define BEL  0007            /* Bell */
  70. #endif
  71.  
  72. #ifndef BS
  73. #define BS   0010            /* Backspace */
  74. #endif
  75.  
  76. #ifndef SP
  77. #define SP   0040            /* Space */
  78. #endif
  79.  
  80. /* Keyword table flags */
  81.  
  82. #define CM_INV 1            /* Invisible keyword */
  83.  
  84. /* Keyword Table Template */
  85.  
  86. struct keytab {                /* Keyword table */
  87.     char *kwd;                /* Pointer to keyword string */
  88.     int val;                /* Associated value */
  89.     int flgs;                /* Flags (as defined above) */
  90. };
  91.