home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / pcomm / part02 / param.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-17  |  2.2 KB  |  72 lines

  1. /*
  2.  * The standard pcomm parameters.  Everything can be altered by using one
  3.  * of pcomm's menus.  Although editing by hand is not encouraged, the
  4.  * pcomm.param file is just an ASCII file.
  5.  */
  6.  
  7. #define MAX_CDELAY    120
  8. #define MIN_CDELAY    10
  9. #define MAX_PAUSE    120
  10. #define MIN_PAUSE    1
  11. #define MAX_TIMER    20
  12. #define MIN_TIMER    2
  13.  
  14. #define NUM_PARAM    33
  15. #define LINE_SET    0
  16. #define TERM_SETUP    4
  17. #define GEN_SETUP    10
  18. #define DELAY_TIMES    18
  19. #define ASCII_SETUP    20
  20. #define LD_CODES    29
  21.  
  22. struct PARAM {
  23.                 /* 0-3 used in line_set_menu() */
  24.     int    d_baud;            /* default baud rate */
  25.     char    d_parity;        /* default parity */
  26.     int    d_dbits;        /* default data bits */
  27.     int     d_sbits;        /* default stop bits */
  28.  
  29.                 /* 4-9 used in term_setup() */
  30.     int    hot;            /* the decimal code for the hot key */
  31.     char     *ascii_hot;        /* ascii representation of hot key */
  32.     char     *d_duplex;        /* default duplex */
  33.     char    *flow;            /* flow control */
  34.     char    *cr_in;            /* send as carriage return */
  35.     char    *cr_out;        /* receive carriage return as */
  36.  
  37.                 /* 10-17 used in gen_setup() */
  38.     char    *logfile;        /* default log file */
  39.     char    *dumpfile;        /* default screen dump file */
  40.     char    *strip;            /* strip high bit (translate table) */
  41.     char    pause_char;        /* pause char synonym */
  42.     char     cr_char;        /* carriage return char synonym */
  43.     char     ctrl_char;        /* ctrl char synonym */
  44.     char     esc_char;        /* escape char synonym */
  45.     char     *abort;            /* destination of aborted downloads */
  46.  
  47.                 /* 18-19 used in gen_setup() & delay_times() */
  48.     int    cdelay;            /* connect delay time */
  49.     int    pause;            /* pause between dialing attempts */
  50.  
  51.                 /* 20-27 used in ascii_xfer_setup() */
  52.     char    *lecho;            /* echo locally ? */
  53.     char    *expand;        /* expand blank lines? */
  54.     int    cr_delay;        /* carriage return delay (ms) */
  55.     char    *pace;            /* pace the output ? */
  56.     char    *cr_up;            /* send carriage return as */
  57.     char    *lf_up;            /* send line feed as */
  58.     int    timer;            /* Transfer timeout */
  59.     char    *cr_dn;            /* receive carriage return as */
  60.     char    *lf_dn;            /* receive line feed as */
  61.  
  62.                 /* 28-31 used in d_revise() */
  63.     char    *ld_plus;        /* + long distance code */
  64.     char    *ld_minus;        /* - long distance code */
  65.     char    *ld_at;            /* @ long distance code */
  66.     char    *ld_pound;        /* # long distance code */
  67. };
  68.  
  69. #ifndef MAIN
  70. extern struct PARAM *param;
  71. #endif /* MAIN */
  72.