home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / NCSATELN / TEL23SRC.ZIP / INCLUDE / WINDAT.H < prev   
Encoding:
C/C++ Source or Header  |  1991-06-06  |  3.2 KB  |  88 lines

  1. /*
  2. *  Windat -- window data structures for NCSA Telnet
  3. ****************************************************************************
  4. *                                                                          *
  5. *                                                                          *
  6. *      NCSA Telnet                                                         *
  7. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  8. *                                                                          *
  9. *      National Center for Supercomputing Applications                     *
  10. *      152 Computing Applications Building                                 *
  11. *      605 E. Springfield Ave.                                             *
  12. *      Champaign, IL  61820                                                *
  13. *                                                                          *
  14. *                                                                          *
  15. ****************************************************************************
  16. *  Tim Krauskopf
  17. *
  18. *  structure to save capabilities of windows, in addition to the
  19. *  virtual vt102 screen driver.
  20. */
  21.  
  22. #ifndef WINDAT_H
  23.  
  24. /*  
  25. *  terminal modes, can be changed by external program
  26. *  VTEK is a VT terminal that can accept graphics
  27. *  TEK  is a tek graphics mode for a VT
  28. *  VT   is a VT-only type, cannot be changed to graphics mode 
  29. */
  30. #define VTEKTYPE     1
  31. #define DUMBTYPE     2
  32. #define VTTYPE         3
  33. #define TEKTYPE     4
  34. #define RASTYPE     5
  35.  
  36. #define NCOLORS     4
  37.  
  38. struct twin {
  39.     unsigned short colors[NCOLORS];
  40.     unsigned char vtwrap,        /* line wrapping flag */
  41.         mname[16],                /* name of the machine connected to */
  42.         linemode[82];            /* line mode buffer for session */
  43.     int pnum,                    /* port number associated */
  44.         vs,                        /* virtual screen associated with it */
  45.         bkscroll,                /* scroll back value */
  46.         width,                    /* width of the window */
  47.         rows,                    /* Number of rows in the window */
  48.         telstate,                /* telnet state for this connection */
  49.         substate,                /* telnet subnegotiation state */
  50.         termstate,                /* terminal type for this connection */
  51.         teks,                    /* tektronix window number */
  52.         halfdup,                /* half duplex mode overrides line mode */
  53.         crfollow,                /* what is supposed to follow a CR? NUL or LF? */
  54.         sstat,                    /* stat box on screen */
  55.         bksp,                    /* what keycode for backspace ?*/
  56.         del,                    /* for delete? */
  57.         slc[31];
  58.     char *ftpopts;                /* FTP cmd line paramters */
  59.     unsigned int mapoutput:1,    /* are we mapping the characters output for this window */
  60.         lmflag:1,                /* Are we in linemode? */
  61.         termsent:1,                /* has terminal type been sent? */
  62.         binary:1,                /* negotiate for binary traffic */
  63.         igoahead:1,                /* negotiation for suppress go-ahead */
  64.         ugoahead:1,                /* neg. for his suppress go-ahead */
  65.         echo:1,                    /* line mode or echo mode? */
  66.         timing:1,                /* timing marker sent */
  67.         capon:1;                /* does this session own a capture file? */
  68.     FILE *capfp;
  69.     struct twin *next,*prev;
  70. };
  71.  
  72. #ifdef WINMASTER
  73.     struct twin *screens[30],
  74.         *current=NULL,
  75.         *console,
  76.         *curdisp=NULL,
  77.         *wins[NPORTS];
  78. #else
  79.     extern struct twin *screens[30],
  80.         *current,
  81.         *console,
  82.         *curdisp,
  83.         *wins[NPORTS];
  84. #endif
  85.  
  86. #define WINDAT_H
  87. #endif
  88.