# 2.11BSD#431 - /usr/src/sys/h/ttydefaults.h

##### Macros

    CBRK              X
    CDSUSP            X
    CEOF              X
    CEOL              X
    CEOT              X
    CERASE            X
    CFLUSH            X
    CFLUSHO           X
    CINTR             X
    CKILL             X
    CLNEXT            X
    CMIN              X
    CQUIT             X
    CQUOTE            X
    CREPRINT          X
    CRPRNT            X
    CSTART            X
    CSTOP             X
    CSUSP             X
    CTIME             X
    CTRL              X
    CWERASE           X
    TTYDEF_SPEED      X
    _TTYDEFAULTS_     X

       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:  *	@(#)ttydefaults.h	1.2 (2.11BSD) 1997/4/15
       7:  */
       8:
       9: /*
      10:  * System wide defaults of terminal state.
      11:  */
      12: #ifndef _TTYDEFAULTS_
      13: #define _TTYDEFAULTS_
      14:
      15: #define CTRL(x) ('x'&037)
      16: /*
      17:  * Control Character Defaults
      18:  */
      19: #define CEOF        CTRL(d)
      20: #define CEOL        _POSIX_VDISABLE
      21: #define CERASE      CTRL(h)
      22: #define CINTR       CTRL(c)
      23: #define CKILL       CTRL(u)
      24: #define CMIN        1
      25: #define CQUIT       034 /* FS, ^\ */
      26: #define CSUSP       CTRL(z)
      27: #define CTIME       1
      28: #define CDSUSP      CTRL(y)
      29: #define CSTART      CTRL(q)
      30: #define CSTOP       CTRL(s)
      31: #define CLNEXT      CTRL(v)
      32: #define CFLUSHO     CTRL(o)
      33: #define CWERASE     CTRL(w)
      34: #define CREPRINT    CTRL(r)
      35: #define CQUOTE      '\\'
      36: #define CEOT        CEOF
      37:
      38: #define CBRK        CEOL
      39: #define CRPRNT      CREPRINT
      40: #define CFLUSH      CFLUSHO
      41:
      42: /*
      43:  * Settings on first open of a tty.
      44:  */
      45: #define TTYDEF_SPEED    (B9600)
      46:
      47: #endif /*_TTYDEFAULTS_*/
      48:
      49: /*
      50:  * Define TTYDEFCHARS to include an array of default control characters.
      51:  */
      52: #ifdef TTYDEFCHARS
      53: u_char  ttydefchars[NCC] = {
      54:     CEOF,   CEOL,   CEOL,   CERASE, CWERASE, CKILL, CREPRINT, CQUOTE,
      55:     CINTR,  CQUIT,  CSUSP,  CDSUSP, CSTART, CSTOP,  CLNEXT,
      56:     CFLUSHO, CMIN,  CTIME, _POSIX_VDISABLE, _POSIX_VDISABLE
      57: };
      58: #endif /*TTYDEFCHARS*/

#### Defined macros

CBRK defined in line 38; never used
CDSUSP defined in line 28; used 1 times

- in line 55

CEOF defined in line 19; used 2 times

- in line 36, 54

CEOL defined in line 20; used 3 times

- in line 38, 54(2)

CEOT defined in line 36; never used
CERASE defined in line 21; used 1 times

- in line 54

CFLUSH defined in line 40; never used
CFLUSHO defined in line 32; used 2 times

- in line 40, 56

CINTR defined in line 22; used 1 times

- in line 55

CKILL defined in line 23; used 1 times

- in line 54

CLNEXT defined in line 31; used 1 times

- in line 55

CMIN defined in line 24; used 1 times

- in line 56

CQUIT defined in line 25; used 1 times

- in line 55

CQUOTE defined in line 35; used 1 times

- in line 54

CREPRINT defined in line 34; used 2 times

- in line 39, 54

CRPRNT defined in line 39; never used
CSTART defined in line 29; used 1 times

- in line 55

CSTOP defined in line 30; used 1 times

- in line 55

CSUSP defined in line 26; used 1 times

- in line 55

CTIME defined in line 27; used 1 times

- in line 56

CTRL defined in line 15; used 12 times

- in line 19-34(12)

CWERASE defined in line 33; used 1 times

- in line 54

TTYDEF_SPEED defined in line 45; never used
_TTYDEFAULTS_ defined in line 13; used 1 times

- in line 12

Last modified: 1997-04-16 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 339 |