1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)ttychars.h	7.2 (2.11BSD) 1997/4/15
   7:  */
   8: 
   9: /*
  10:  * User visible structures and constants
  11:  * related to terminal handling.
  12:  */
  13: #ifndef _TTYCHARS_
  14: #define _TTYCHARS_
  15: struct ttychars {
  16:     char    tc_erase;   /* erase last character */
  17:     char    tc_kill;    /* erase entire line */
  18:     char    tc_intrc;   /* interrupt */
  19:     char    tc_quitc;   /* quit */
  20:     char    tc_startc;  /* start output */
  21:     char    tc_stopc;   /* stop output */
  22:     char    tc_eofc;    /* end-of-file */
  23:     char    tc_brkc;    /* input delimiter (like nl) */
  24:     char    tc_suspc;   /* stop process signal */
  25:     char    tc_dsuspc;  /* delayed stop process signal */
  26:     char    tc_rprntc;  /* reprint line */
  27:     char    tc_flushc;  /* flush output (toggles) */
  28:     char    tc_werasc;  /* word erase */
  29:     char    tc_lnextc;  /* literal next character */
  30: };
  31: 
  32: #define CTRL(c) ('c'&037)
  33: #define _POSIX_VDISABLE ((unsigned char)'\377')
  34: #define CCEQ(val,c) (c == val ? val != _POSIX_VDISABLE : 0)
  35: 
  36: /* default special characters */
  37: #define CERASE  0177
  38: #define CKILL   CTRL(u)
  39: #define CINTR   CTRL(c)
  40: #define CQUIT   034     /* FS, ^\ */
  41: #define CSTART  CTRL(q)
  42: #define CSTOP   CTRL(s)
  43: #define CEOF    CTRL(d)
  44: #define CEOT    CEOF
  45: #define CBRK    _POSIX_VDISABLE
  46: #define CSUSP   CTRL(z)
  47: #define CDSUSP  CTRL(y)
  48: #define CRPRNT  CTRL(r)
  49: #define CFLUSH  CTRL(o)
  50: #define CWERASE CTRL(w)
  51: #define CLNEXT  CTRL(v)
  52: #endif /* _TTYCHARS_ */

Defined struct's

ttychars defined in line 15; used 6 times

Defined macros

CCEQ defined in line 34; used 18 times
CEOT defined in line 44; used 2 times
CTRL defined in line 32; used 110 times
_POSIX_VDISABLE defined in line 33; used 22 times
_TTYCHARS_ defined in line 14; used 1 times
  • in line 13

Usage of this include

Last modified: 1997-04-22
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3275
Valid CSS Valid XHTML 1.0 Strict