home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / ncsat.cpt / Telnet2.5 final / vs / wind.h < prev   
Encoding:
C/C++ Source or Header  |  1992-06-14  |  3.2 KB  |  85 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. /* BYU 2.4.7 - "clientflags" modifiers */
  15.  
  16. #define TYPE_I_ON_CLOSE    1    /* BYU mod */
  17. #define CAPTURE_DATA    2    /* BYU mod */
  18. #define MGET_STATE         4    /* BYU 2.4.7 */
  19. #define MPUT_STATE         8            /* BYU 2.4.7 */
  20. #define PASTE_IN_PROGRESS    0x4000    /* BYU 2.4.7 */
  21.  
  22. struct WindRec {
  23.     short    vs,        /* virtual screen number */                    /* BYU 2.4.15 */
  24.       maxscroll,        /* Requested amount of scroll back */
  25.        ESclear,        /* BYU mod - will Clear Screen really clear screen? */
  26.       ESscroll,        /* will Clear Screen Save Lines? */
  27.           naws,        /* NCSA: will negotiate NAWS */
  28.         active,        /* is window active? (ie on screen?) */
  29.         corpse,        /* is the window a corpse? */
  30.      lineAllow,        /* allow linemode? */
  31.       eightbit,        /* eight bit font displayed (false is seven bit display */    /* BYU 2.4.9 */
  32.           Isga,        /* I am supressing go ahead */
  33.           Usga,        /* You are supressing go ahead */
  34.         Ittype,        /* I am sending terminal type negotiations.. */
  35.           echo,        /* NOTE: this is backwards - I am echoing your chars */
  36.           wrap,        /* whether vtwrap is set or not for this screen */
  37. connectionType,        /* BYU serial - 0 = network, 1 = serial/SLIP */
  38.           port,        /* TCP/IP port number */
  39.        portNum,        /* port number from the application save set */
  40.        ftpport,        /* BYU mod - FTP port number */
  41.       ftpstate,        /* BYU mod - Telnet session = 0, Ftp session != 0 */
  42.       ftpnext,        /* BYU mod - Next ftpstate after waiting for response from "PORT" */
  43.          bsdel,        /* backspace or delete is default */
  44.      termstate,        /* Emulation State (-1 is none, 0 is VT100) */
  45.       telstate,        /* Telnet State */
  46.           timing,        /* True if waiting for timing mark */
  47.        substat,        /* Telnet Subnegot. State */
  48.           xfer,        /* File X-fer status */
  49.       curgraph,        /* Associated Tek drawing */
  50.        enabled,        /* Are we currently enabled for receive? */
  51.           outlen,        /* Length of Paste Buffer remaining to be sent */
  52.          kblen,        /* Pointer to next char in buffer to be used */
  53.       tekclear,        /* Does tektronix (1) clear screen or (0) add window */
  54.          width,        /* Width we started with */
  55.        halfdup,        /* If true then half-duplex mode */
  56.        tektype,        
  57.      forcesave,        /* NCSA 2.5: force lines to be saved */
  58.          crmap,        /* BYU mod - CR's second byte is ... */
  59.    capturesize,        /* BYU mod - ftp client size of captured data */
  60.    clientflags;        /* BYU mod - boolean flags for ftp client */
  61.  
  62. long   incount,        /* BYU 2.4.7 - Count of bytes into this port */
  63.       outcount;        /* BYU 2.4.7 - Count of bytes out this port */
  64.  
  65. char     *name,        /* BYU 2.4.7 - Name of session */
  66.       *machine,        /* Name of machine */
  67.        *outptr,        /* Pointer to next char to send */
  68.      **outhand;        /* Handle to text from the Paste */
  69.     short rows,        /* handshaking */
  70.             col,
  71.         lmflag,        /* are we in line-mode ?? */
  72.         ftpwind;    /* is this an ftp window?? */
  73. short slc[31];
  74.     char
  75.         TELstop,    /* Character for scrolling to stop */
  76.         TELgo,        /* Character for scrolling to go */
  77.         TELip,        /* Character for interrupt process */
  78.     ftpbuf[MAXFTP],    /* BYU mod - Outgoing ftp commands buffer */
  79.     kbbuf[MAXKB];    /* The keyboard buffer (echo mode ) */
  80.     GrafPtr 
  81.           wind;
  82.     };
  83.  
  84. typedef struct WindRec WindRec;
  85.