home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucbinclude / sys / ttychars.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.5 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. #ident    "@(#)//usr/ucbinclude/sys/ttychars.h.sl 1.1 4.0 12/08/90 3316 AT&T-USL"
  11.  
  12. /*******************************************************************
  13.  
  14.         PROPRIETARY NOTICE (Combined)
  15.  
  16. This source code is unpublished proprietary information
  17. constituting, or derived under license from AT&T's UNIX(r) System V.
  18. In addition, portions of such source code were derived from Berkeley
  19. 4.3 BSD under license from the Regents of the University of
  20. California.
  21.  
  22.  
  23.  
  24.         Copyright Notice 
  25.  
  26. Notice of copyright on this source code product does not indicate 
  27. publication.
  28.  
  29.     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  30.     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  31.               All rights reserved.
  32. ********************************************************************/ 
  33.  
  34. /*
  35.  * Copyright (c) 1982, 1986 Regents of the University of California.
  36.  * All rights reserved.  The Berkeley software License Agreement
  37.  * specifies the terms and conditions for redistribution.
  38.  *
  39.  */
  40.  
  41. /*
  42.  * User visible structures and constants
  43.  * related to terminal handling.
  44.  */
  45. #ifndef _SYS_TTYCHARS_H
  46. #define _SYS_TTYCHARS_H
  47. struct ttychars {
  48.     char    tc_erase;    /* erase last character */
  49.     char    tc_kill;    /* erase entire line */
  50.     char    tc_intrc;    /* interrupt */
  51.     char    tc_quitc;    /* quit */
  52.     char    tc_startc;    /* start output */
  53.     char    tc_stopc;    /* stop output */
  54.     char    tc_eofc;    /* end-of-file */
  55.     char    tc_brkc;    /* input delimiter (like nl) */
  56.     char    tc_suspc;    /* stop process signal */
  57.     char    tc_dsuspc;    /* delayed stop process signal */
  58.     char    tc_rprntc;    /* reprint line */
  59.     char    tc_flushc;    /* flush output (toggles) */
  60.     char    tc_werasc;    /* word erase */
  61.     char    tc_lnextc;    /* literal next character */
  62. };
  63.  
  64. #ifndef _SYS_TERMIOS_H
  65.  
  66. #ifndef CTRL
  67. # if defined(__STDC__)
  68. #  define    CTRL(c)    ((#c[0])&037)
  69. # else
  70. #  define     CTRL(c) ('c'&037)
  71. #endif
  72. #endif
  73.  
  74. /* default special characters */
  75. #define    CERASE    0177
  76. #define    CKILL    CTRL(u)
  77. #define    CINTR    CTRL(c)
  78. #define    CQUIT    034        /* FS, ^\ */
  79. #define    CSTART    CTRL(q)
  80. #define    CSTOP    CTRL(s)
  81. #define    CEOF    CTRL(d)
  82. #define    CEOT    CEOF
  83. #define    CBRK    0377
  84. #define    CSUSP    CTRL(z)
  85. #define    CDSUSP    CTRL(y)
  86. #define    CRPRNT    CTRL(r)
  87. #define    CFLUSH    CTRL(o)
  88. #define    CWERASE    CTRL(w)
  89. #define    CLNEXT    CTRL(v)
  90.  
  91. #endif /* _SYS_TERMIOS_H */
  92. #endif
  93.