home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / contribu / byu_tel2.hqx / vs / wind.h < prev    next >
Text File  |  1990-04-10  |  2KB  |  67 lines

  1. /*
  2.  *        %W%    (NCSA)    %G%
  3.  *
  4.  *        MacLook Window Management Data Structure Definition
  5.  *
  6.  *
  7.  */
  8.  
  9. #include <Controls.h>
  10.  
  11. #define MAXFTP    128    /* BYU mod */
  12. #define    MAXKB    256    /* BYU mod */
  13.  
  14. #define TYPE_I_ON_CLOSE    1
  15. #define CAPTURE_DATA    2
  16.  
  17. struct WindRec {
  18.     int        vs,        /* virtual screen number */
  19.       maxscroll,        /* Requested amount of scroll back */
  20.        ESclear,        /* BYU mod - will Clear Screen really clear screen? */
  21.       ESscroll,        /* will Clear Screen Save Lines? */
  22.         active,        /* is window active? (ie on screen?) */
  23.         corpse,        /* is the window a corpse? */
  24.  
  25.           Isga,        /* I am supressing go ahead */
  26.           Usga,        /* You are supressing go ahead */
  27.         Ittype,        /* I am sending terminal type negotiations.. */
  28.           echo,        /* NOTE: this is backwards - I am echoing your chars */
  29.           wrap,        /* whether vtwrap is set or not for this screen */
  30.  
  31.           port,        /* TCP/IP port number */
  32.        ftpport,        /* BYU mod - FTP port number */
  33.       ftpstate,        /* BYU mod - Telnet session = 0, Ftp session != 0 */
  34.       ftpnext,        /* BYU mod - Next ftpstate after waiting for response from "PORT" */
  35.          bsdel,        /* backspace or delete is default */
  36.      termstate,        /* Emulation State (-1 is none, 0 is VT100) */
  37.       telstate,        /* Telnet State */
  38.           timing,        /* True if waiting for timing mark */
  39.        substat,        /* Telnet Subnegot. State */
  40.           xfer,        /* File X-fer status */
  41.       curgraph,        /* Associated Tek drawing */
  42.        enabled,        /* Are we currently enabled for receive? */
  43.           outlen,        /* Length of Paste Buffer remaining to be sent */
  44.          kblen,        /* Pointer to next char in buffer to be used */
  45.       tekclear,        /* Does tektronix (1) clear screen or (0) add window */
  46.          width,        /* Width we started with */
  47.        halfdup,        /* If true then half-duplex mode */
  48.          crmap,        /* CR's second byte is ... */
  49.    capturesize,        /* BYU mod - ftp client size of captured data */
  50.    clientflags;        /* BYU mod - boolean flags for ftp client */
  51.  
  52.     char *name,        /* Name of session */
  53.       *machine,        /* Name of machine */
  54.        *outptr,        /* Pointer to next char to send */
  55.      **outhand;        /* Handle to text from the Paste */
  56.     char
  57.         TELstop,    /* Character for scrolling to stop */
  58.         TELgo,        /* Character for scrolling to go */
  59.         TELip,        /* Character for interrupt process */
  60.     ftpbuf[MAXFTP],    /* BYU mod - Outgoing ftp commands buffer */
  61.     kbbuf[MAXKB];    /* The keyboard buffer (echo mode ) */
  62.     GrafPtr 
  63.           wind;
  64.     };
  65.  
  66. typedef struct WindRec WindRec;
  67.