home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ncsa / Mac / Telnet2.6 / prerelease / d4 / Telnet2.6.1d4.src.sit.hqx / Telnet 2.6.1d4 source / source / config / Preferences.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-19  |  5.4 KB  |  189 lines

  1. #define    PREFERENCES_FILE_NAME_STR_ID    1991    // STR resource containing "NCSA Telnet
  2.                                                 //    Preferences" or translated name
  3.  
  4. // Name of each instance is the resource name.  Resource type TeRm
  5. typedef    struct {
  6.     short
  7.         version;                // Version of this structure
  8.         
  9.     RGBColor
  10.         nfcolor,                // Normal foreground RGB
  11.         nbcolor,                // Normal background RGB
  12.         bfcolor,                // Blinking foreground RGB
  13.         bbcolor,                // Blinking background RGB
  14.         reserved1,                // Reserved by JMB - NCSA
  15.         reserved2;                // Reserved by JMB - NCSA
  16.         
  17.     short
  18.         vtemulation,            // 0 = VT100, 1 = VT220 (supposedly)
  19.         vtwidth,                // Width of the terminal screen in characters
  20.         vtheight,                // Height of the terminal screen in characters
  21.         fontsize,                // Size of DisplayFont to use to display text
  22.         numbkscroll;            // Number of lines to save in scroll buffer
  23.         
  24.     Boolean
  25.         ANSIgraphics,            // Recognize ANSI color sequences
  26.         Xtermsequences,            // Recognize Xterm sequences
  27.         vtwrap,                    // Use VT wrap mode
  28.         emacsmetakey,            // Option key is EMACS meta key
  29.         emacsarrows,            // Arrow keys and mouse position are EMACS flavor
  30.         MATmappings,            // Map PageUp, PageDown, Home, End. (MAT == Mark Tamsky)
  31.         eightbit,                // Don't strip the high bit
  32.         clearsave;                // Save cleared lines
  33.         
  34.     Str63
  35.         DisplayFont;            // Font to use to display text
  36.     
  37.     Str32
  38.         AnswerBackMessage;        // Response to send when asked what terminal we are
  39.     
  40.     short
  41.         padding[100];            // So I'm generous....
  42. }    TerminalPrefs;
  43. #define    TERMINALPREFS_RESTYPE    'TeRm'
  44. #define    TERMINALPREFS_APPID        1991        // The "<Default>" terminal seed copy
  45.  
  46. // Name of each instance is the resource name.  Resource type SeSn
  47. typedef    struct {
  48.     short
  49.         version;                // Version of this structure
  50.         
  51.     short
  52.         port,                    // Port to connect to
  53.         tektype,                // -1 = inhibit, 0 = 4014, 1 = 4105
  54.         pastemethod,            // 0 = quick, 1 = block
  55.         pasteblocksize;            // Size of blocks to paste if using block mode
  56.  
  57.     unsigned long
  58.         ip_address;                // IP address of the host
  59.  
  60.     Boolean
  61.         forcesave,                //
  62.         crmap,                    // Strange Bezerkley 4.3 CR mode needed
  63.         linemode,                // Allow linemode to be used
  64.         showlowlevelerrors,        // Show low level errors (??????????????????????)
  65.         tekclear,                // Clear TEK window vs. create new one
  66.         halfdup;                // Half duplex required
  67.         
  68.     char
  69.         bksp,                    // 0 DELETE = BKSP, 1 DELETE = DELETE
  70.         ckey,
  71.         skey,
  72.         qkey;
  73.  
  74.     Str32
  75.         TerminalEmulation,        // Name of terminal emulator to use
  76.         TranslationTable;        // Name of translation table to use by default
  77.  
  78.     Str63
  79.         hostname;                // The DNS name of the host
  80.         
  81.     Boolean
  82.         authenticate,            // Kerberos authentication
  83.         encrypt,                // Encrypted session
  84.         localecho,                // Force local echo on?
  85.         reserved1;                // Reserved by JMB - NCSA
  86.         
  87.     short
  88.         padding[98];            // Disk space is cheap....
  89. }    SessionPrefs;
  90. #define    SESSIONPREFS_RESTYPE    'SeSn'
  91. #define SESSIONPREFS_APPID        1991        // The "<Default>" session seed copy
  92.  
  93. // Only one instance of this resource type.  Resource type PrEf
  94. typedef    struct    {
  95.     short
  96.         version;                // Version of this resource
  97.         
  98.     short
  99.         CursorType,                // 0 = block, 1 = underscore, 2 = vertical line
  100.         CopyTableThresh;        // Copy table threshold
  101.         
  102.     long
  103.         TimeSlice;                // Timeslice passed to WaitNextEvent
  104.         
  105.     ResType
  106.         CaptureFileCreator;        // Creator signature for session capture files
  107.         
  108.     Boolean
  109.         WindowsDontGoAway,        // Connection's windows remain open after connection close
  110.         StaggerWindows,            // Stagger connection windows
  111.         CommandKeys,            // Use command key shortcuts for menus
  112.         RemapTilde,                // Remap ╥~╙ to escape
  113.         BlinkCursor,            // Blink the cursor
  114.         KeyPadAndFuncMenus;        // Show Keypad and Function key menus
  115.         
  116.     short
  117.         padding[100];            // Memory is getting cheap too....
  118. }    ApplicationPrefs;
  119. #define    APPLICATIONPREFS_RESTYPE    'PrEf'
  120. #define    APPLICATIONPREFS_ID            1991
  121. #define    APPLICATIONPREFS_APPID        1990
  122.  
  123. extern    ApplicationPrefs    *gApplicationPrefs;
  124.  
  125. // Only one instance of this structure.  Resource FTPs
  126. typedef    struct {
  127.     short
  128.         version;                // Version of this resource
  129.  
  130.     short
  131.         ServerState;            // 0 = off, 1 = no protection, 2 = password protection
  132.         
  133.     OSType
  134.         BinaryCreator,            // Default creator for files transferred in binary mode
  135.         BinaryType,                // Default type for files transferred in binary mode
  136.         TextCreator;            // Default creator for file transferred in ASCII mode
  137.         
  138.     Boolean
  139.         ShowFTPlog,                // FTP log defaults to visible
  140.         DNSlookupconnections,    // Translate IP of connecting hosts to DNS names for log
  141.         UseMacBinaryII,            // Allow MacBinary II
  142.         unused1,                // Unused
  143.         unused2,                // Unused
  144.         ResetMacBinary,            // Reset MacBinary after each transfer
  145.         DoISOtranslation;        // Use ISO translation
  146.  
  147.     short
  148.         padding[100];
  149. }    FTPServerPrefs;
  150. #define    FTPSERVERPREFS_RESTYPE    'FTPs'
  151. #define    FTPSERVERPREFS_ID         1991
  152. #define    FTPSERVERPREFS_APPID     1990
  153.  
  154. extern    FTPServerPrefs    *gFTPServerPrefs;
  155.  
  156. // Username is the resource name.  Resource type FTPu
  157. typedef    struct {
  158.     short
  159.         version;                // Version of this resource
  160.     Str32
  161.         EncryptedPassword,        // Encrypted form of user's password
  162.         DefaultDirVolName;        // Name of the volume containing user's default directory
  163.         
  164.     long
  165.         DefaultDirDirID;        // DirID of the user's default directory
  166.  
  167.     Boolean
  168.         UserCanCWD;                // User is allowed to change directories
  169.         
  170.     short
  171.         padding[20];            // Some padding for the future
  172. }    FTPUser;
  173. #define    FTPUSER                    'FTPu'
  174.  
  175. // >>>> FTP Client Prefs? <<<    
  176.  
  177. typedef    struct {
  178.     TerminalPrefs
  179.         **terminal;
  180.     SessionPrefs
  181.         **session;
  182.     Str255
  183.         WindowName;
  184.     short
  185.         ftpstate;
  186.     Rect
  187.         WindowLocation;    
  188. }    ConnInitParams;
  189.