home *** CD-ROM | disk | FTP | other *** search
/ BBS 1 / BBS#1.iso / maximus / fddev220.arj / C.ARJ / TERMINAL.H < prev    next >
C/C++ Source or Header  |  1993-06-28  |  4KB  |  106 lines

  1. /*
  2. **  terminal.h
  3. **
  4. **  Structures for TERMPHON.FD, TERMPROF.FD, and TERMKEYS.FD
  5. **
  6. **  Copyright 1991-1993 Joaquim Homrighausen; All rights reserved.
  7. **
  8. **  Last revised: 93-06-18                         FrontDoor 2.11+
  9. **
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15. #ifndef __TERMINAL_H__
  16. #define __TERMINAL_H__
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /*
  23. **  TERMPHON.FD - Internal terminal telephone directory record
  24. **
  25. **  Note that the char[] fields are in Pascal fashion. The first byte is
  26. **  the length byte. The actual string starts at [1] and the string is NOT
  27. **  NUL terminated.
  28. */
  29. typedef struct
  30.     {
  31.     char            Name[31];                                  /*System name*/
  32.     char            Number[35];                 /*Telephone number as dialed*/
  33.     char            Password[17];             /*Default password for session*/
  34.     unsigned short int
  35.                     Baud;                                        /*Baud rate*/
  36.     unsigned long   Flags;                  /*See below under 'Entry Flags:'*/
  37.     unsigned char   Protocol,             /*Preferred file transfer protocol*/
  38.                     Parity,                                         /*Parity*/
  39.                     WordLen,                        /*# of data bits, 7 or 8*/
  40.                     StopBits,                       /*# of stop bits, 1 or 2*/
  41.                     Emulation;                          /*Terminal emulation*/
  42.     unsigned short int
  43.                     KeySet,          /*Key definition record, 0xFFFF=DEFAULT*/
  44.                     Profile;                     /*Profile record, 0=DEFAULT*/
  45.     char            Script[9];           /*Script name to use, blank if none*/
  46.     }
  47.     PHONEREC;
  48.  
  49.     /* Phone record flags */
  50.  
  51. #define TPHONE_XLATON   0x00000001L                 /*Use translation tables*/
  52. #define TPHONE_INQUEUE  0x00000002L                     /*Queued for dialing*/
  53. #define TPHONE_LFEXPAND 0x00000004L                /*On=CR->CR/LF Off=CR->CR*/
  54. #define TPHONE_NOWRAP   0x00000008L          /*Don't wrap lines when xpos=80*/
  55. #define TPHONE_LECHO    0x00000010L       /*Echo keyboard input to local CRT*/
  56. #define TPHONE_NOAVATAR 0x00000020L                    /*No AVATAR sequences*/
  57. #define TPHONE_NOIEMSI  0x00000040L                               /*No IEMSI*/
  58. #define TPHONE_DELETED  0x80000000L         /*Entry is deleted, never stored*/
  59.  
  60. /*
  61. **    TERMPROF.FD - Profile record
  62. **
  63. **  All strings are NUL terminated, a'la C ASCIIZ strings.
  64. */
  65. typedef struct
  66.     {
  67.     char            UserName[30];                                /*User name*/
  68.     char            Handle[20];                                     /*Handle*/
  69.     char            Password[20];                                 /*Password*/
  70.     unsigned long   Flags;                /*See below under 'Profile Flags:'*/
  71.     char            RESERVED[20];                                 /*Reserved*/
  72.     }
  73.     PROFILE;
  74.  
  75.     /* Profile flags (FLAGS) */
  76.  
  77. #define PRF_HOTKEYS     0x00000001L                                /*Hotkeys*/
  78. #define PRF_QUIET       0x00000002L                          /*Don't disturb*/
  79. #define PRF_MORE        0x00000004L                           /*Page pausing*/
  80. #define PRF_EDITOR      0x00000008L                 /*Use full-screen editor*/
  81. #define PRF_NEWS        0x00000010L             /*Show bulletins, news, etc.*/
  82. #define PRF_NEWMAIL     0x00000020L                     /*Check for new mail*/
  83. #define PRF_NEWFILE     0x00000040L                    /*Check for new files*/
  84. #define PRF_CLRSCR      0x00000080L                        /*Screen clearing*/
  85.  
  86. /*
  87. **  TERMKEYS.FD - Keyset record
  88. **
  89. **  Note that the char[] fields are in Pascal fashion. The first byte is
  90. **  the length byte. The actual string starts at [1] and the string is NOT
  91. **  NUL terminated.
  92. */
  93. typedef struct
  94.     {
  95.     char            ShiftKey[12][31];                         /*Shift F1-F12*/
  96.     char            CtrlKey[12][31];                           /*Ctrl F1-F12*/
  97.     }
  98.     KEYREC;
  99.  
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103. #endif
  104.  
  105. /* end of file "terminal.h" */
  106.