home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / ncsat.cpt / Telnet2.5 final / main / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-04  |  2.6 KB  |  74 lines

  1. /*
  2. *    prefs.h
  3. *     by Gaige B. Paulsen
  4. ****************************************************************************
  5. *    Part of NCSA Telnet for the Macintosh                                   *
  6. *                                                                          *
  7. *      Uses    :                                                               *
  8. *      TCP/IP kernel for NCSA Telnet                                       *
  9. *      by Tim Krauskopf                                                    *
  10. *       with Macintosh code by Gaige B. Paulsen                                 *
  11. *                                                                          *
  12. *      National Center for Supercomputing Applications                     *
  13. *      152 Computing Applications Building                                 *
  14. *      605 E. Springfield Ave.                                             *
  15. *      Champaign, IL  61820                                                *
  16. *                                                                          *
  17. *                                                                          *
  18. ****************************************************************************
  19. *
  20. *    Preferences structures and initialization data.
  21. *
  22. *    Included by:
  23. *        prefs.c
  24. *        maclook.c
  25. */
  26.  
  27.  
  28. /*
  29.  * Preferences record for NCSA Telnet 
  30.  */
  31.  
  32. #define PREF_Version        7    /* BYU 2.4.11 - was 5 */    /* BYU 2.4.18 - was 6 */
  33.  
  34. typedef struct {
  35.     short Version;            /* Preferences Record Version Information */
  36.     short CTthresh;            /* Copy Table Threshold */
  37.     short cmdKeys;            /* Command Keys on? */
  38.     short MacBinary;            /* MacBinary on by default? */
  39.     short MacBReset;            /* MacBinary state resets on connect? */
  40.     short optKeys;            /* Enable the Option key translations */
  41.     short dontclose;            /* Closed connections don't go away */
  42.     short mapTilde;            /* Mapping the Tilde, Mapping the Tilde, .... */
  43.     short stag;                /* staggered windows */
  44.     short cursorBlink;        /* BYU 2.4.11 - blink the cursor? */
  45.     short cursorType;        /* BYU 2.4.11 - 0 = block, 1 = underscore, 2 = vertical line */
  46.     short systemKCHR;        /* BYU 2.4.18 */
  47.     } NCSAPrefs;
  48.  
  49. #ifdef PREFMASTER
  50. NCSAPrefs    Prefs = { PREF_Version, 2, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0};    /* BYU 2.4.18 */
  51. int PrefLength[] =
  52.             { 0,                    /* Prefs 0 didn't exist.... */
  53.              10,                    /* Prefs 1 didn't have optKeys */
  54.              12,                    /* Prefs 2 didn't have dontclose */
  55.              14,                    /* Prefs 3 didn't have mapTilde */
  56.              16,    /* BYU 2.4.11 - staggered windows */    
  57.              20,    /* BYU 2.4.11 - +4 bytes: blinking cursor and different cursor types */
  58.              24        /* BYU 2.4.18 - +2 bytes: choice of application or system KCHR */
  59.             };
  60. #else
  61. extern NCSAPrefs Prefs;
  62. extern int PrefLength[];
  63. #endif
  64.  
  65. extern void PromptPrefs
  66.   (
  67.     void
  68.   );
  69.  
  70. extern int GetPrefs
  71.   (
  72.     void
  73.   );
  74.