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

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