home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / termio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.3 KB  |  93 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.  
  11. #ifndef _SYS_TERMIO_H
  12. #define _SYS_TERMIO_H
  13.  
  14. #ident    "@(#)/usr/include/sys/termio.h.sl 1.1 4.0 12/08/90 2752 AT&T-USL"
  15.  
  16. #include <sys/termios.h>
  17.  
  18.  
  19. /* all the ioctl codes and flags are now in termios.h */
  20.  
  21. /*
  22.  * Ioctl control packet
  23.  */
  24. struct termio {
  25.     unsigned short    c_iflag;    /* input modes */
  26.     unsigned short    c_oflag;    /* output modes */
  27.     unsigned short    c_cflag;    /* control modes */
  28.     unsigned short    c_lflag;    /* line discipline modes */
  29.     char    c_line;        /* line discipline */
  30.     unsigned char    c_cc[NCC];    /* control chars */
  31. };
  32.  
  33. #define    IOCTYPE    0xff00
  34.  
  35.  
  36. /*
  37.  * structure of ioctl arg for LDGETT and LDSETT
  38.  */
  39. struct    termcb    {
  40.     char    st_flgs;    /* term flags */
  41.     char    st_termt;    /* term type */
  42.     char    st_crow;    /* gtty only - current row */
  43.     char    st_ccol;    /* gtty only - current col */
  44.     char    st_vrow;    /* variable row */
  45.     char    st_lrow;    /* last row */
  46. };
  47.  
  48. #ifndef u3b15
  49. #define    SSPEED    7    /* default speed: 300 baud */
  50. #else
  51. #define SSPEED    9    /* default speed: 1200 baud */
  52. #endif
  53.  
  54. #ifdef u3b15
  55. #define TTYTYPE (TIOC|8)
  56. #endif
  57. #define    TCDSET    (TIOC|32)
  58.  
  59. /*
  60.  * Terminal types
  61.  */
  62. #define    TERM_NONE    0    /* tty */
  63. #define    TERM_TEC    1    /* TEC Scope */
  64. #define    TERM_V61    2    /* DEC VT61 */
  65. #define    TERM_V10    3    /* DEC VT100 */
  66. #define    TERM_TEX    4    /* Tektronix 4023 */
  67. #define    TERM_D40    5    /* TTY Mod 40/1 */
  68. #define    TERM_H45    6    /* Hewlitt-Packard 45 */
  69. #define    TERM_D42    7    /* TTY Mod 40/2B */
  70.  
  71. /*
  72.  * Terminal flags
  73.  */
  74. #define TM_NONE        0000    /* use default flags */
  75. #define TM_SNL        0001    /* special newline flag */
  76. #define TM_ANL        0002    /* auto newline on column 80 */
  77. #define TM_LCF        0004    /* last col of last row special */
  78. #define TM_CECHO    0010    /* echo terminal cursor control */
  79. #define TM_CINVIS    0020    /* do not send esc seq to user */
  80. #define TM_SET        0200    /* must be on to set/res flags */
  81.  
  82. /*
  83.  * structure of ioctl arg for AIOCSETSS (defined is asy.h)
  84.  */
  85.  
  86. struct    termss {
  87.     char    ss_start;     /* output start char */
  88.     char     ss_stop;    /* output stop char */
  89. };
  90.  
  91.  
  92. #endif    /* _SYS_TERMIO_H */
  93.