home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / ttychars.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.7 KB  |  63 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. #ifndef _SYS_TTYCHARS_H
  11. #define _SYS_TTYCHARS_H
  12.  
  13. #ident    "@(#)/usr/include/sys/ttychars.h.sl 1.1 4.0 12/08/90 43299 AT&T-USL"
  14.  
  15. /*    @(#)ttychars.h 2.5 88/02/08 SMI; from UCB 4.6 83/07/01    */
  16.  
  17. /*
  18.  * User visible structures and constants
  19.  * related to terminal handling.
  20.  */
  21.  
  22. struct ttychars {
  23.     char    tc_erase;    /* erase last character */
  24.     char    tc_kill;    /* erase entire line */
  25.     char    tc_intrc;    /* interrupt */
  26.     char    tc_quitc;    /* quit */
  27.     char    tc_startc;    /* start output */
  28.     char    tc_stopc;    /* stop output */
  29.     char    tc_eofc;    /* end-of-file */
  30.     char    tc_brkc;    /* input delimiter (like nl) */
  31.     char    tc_suspc;    /* stop process signal */
  32.     char    tc_dsuspc;    /* delayed stop process signal */
  33.     char    tc_rprntc;    /* reprint line */
  34.     char    tc_flushc;    /* flush output (toggles) */
  35.     char    tc_werasc;    /* word erase */
  36.     char    tc_lnextc;    /* literal next character */
  37. };
  38.  
  39. #ifndef _SYS_TERMIOS_H
  40.  
  41. #define    CTRL(c)    ((c)&037)
  42.  
  43. /* default BSD special characters */
  44. #define    CERASE    0177
  45. #define    CKILL    CTRL('u')
  46. #define    CINTR    CTRL('c')
  47. #define    CQUIT    034        /* FS, ^\ */
  48. #define    CSTART    CTRL('q')
  49. #define    CSTOP    CTRL('s')
  50. #define    CEOF    CTRL('d')
  51. #define    CEOT    CEOF
  52. #define    CBRK    0377
  53. #define    CSUSP    CTRL('z')
  54. #define    CDSUSP    CTRL('y')
  55. #define    CRPRNT    CTRL('r')
  56. #define    CFLUSH    CTRL('o')
  57. #define    CWERASE    CTRL('w')
  58. #define    CLNEXT    CTRL('v')
  59.  
  60. #endif /*_SYS_TERMIOS_H*/
  61.  
  62. #endif /*_SYS_TTYCHARS_H*/
  63.