home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / ansi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.8 KB  |  53 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/sys/ansi.h.sl 1.1 4.0 12/08/90 48881 AT&T-USL"
  11.  
  12. #ifndef    _SYS_ANSI_H
  13. #define    _SYS_ANSI_H
  14. /*
  15.  * definitions for Integrated Workstation Environment ANSI x3.64 
  16.  * terminal control language parser 
  17.  */
  18.  
  19. #define ANSI_MAXPARAMS    5    /* maximum number of ANSI paramters */
  20. #define ANSI_MAXTAB    40    /* maximum number of tab stops */
  21. #define ANSI_MAXFKEY    30    /* max length of function key with <ESC>Q */
  22.  
  23.  
  24. #define    ANSIPSZ        64    /* max packet size sent by ANSI */
  25.  
  26. /*
  27.  * Font values for ansistate
  28.  */
  29. #define    ANSI_FONT0    0    /* Primary font (default) */
  30. #define    ANSI_FONT1    1    /* First alternate font */
  31. #define    ANSI_FONT2    2    /* Second alternate font */
  32.  
  33. #define    ANSI_BLKOUT    0x8000    /* Scroll lock, for M_START, M_STOP */
  34.  
  35. struct ansi_state {        /* state for ansi x3.64 emulator */
  36.     ushort    a_flags;    /* flags for this x3.64 terminal */
  37.     unchar    a_font;        /* font type */
  38.     unchar    a_state;    /* state in output esc seq processing */
  39.     unchar    a_gotparam;    /* does output esc seq have a param */
  40.     ushort    a_curparam;    /* current param # of output esc seq */
  41.     ushort    a_paramval;    /* value of current param */
  42.     short    a_params[ANSI_MAXPARAMS];  /* parameters of output esc seq */
  43.     char    a_fkey[ANSI_MAXFKEY];    /* work space for function key */
  44.     mblk_t    *a_wmsg;    /* ptr to data message being assembled */
  45.     queue_t    *a_wqp;        /* ptr to write queue for associated stream */
  46.     queue_t    *a_rqp;        /* ptr to read queue for associated stream */
  47. };
  48.  
  49.  
  50. typedef struct ansi_state ansistat_t;
  51.  
  52. #endif /* _SYS_ANSI_H */
  53.