# 2.11BSD#431 - /usr/src/new/PORT/B/src/bed/keys.h

##### Macros

    ACCEPT            X
    COPY              X
    Ctl               X
    DELETE            X
    DOWNARROW         X
    DOWNLINE          X
    EXIT              X
    EXTEND            X
    GOTO              X
    HELP              X
    LEFTARROW         X
    MASK              X
    NARROW            X
    NEWLINE           X
    NEXT              X
    PLAYBACK          X
    PREVIOUS          X
    RECORD            X
    REDO              X
    REDRAW            X
    RETURN            X
    RITEARROW         X
    RNARROW           X
    SAVEMACRO         X
    UNDO              X
    UPARROW           X
    UPLINE            X
    USEMACRO          X
    WIDEN             X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
       2: /* $Header: keys.h,v 2.3 85/08/22 16:04:38 timo Exp $ */
       3:
       4: /*
       5:  * B editor -- Function key and control character definitions.
       6:  */
       7:
       8:
       9: #define Ctl(x) ('x'&037)
      10:
      11: /*
      12:  * Commands bound to control characters.
      13:  *
      14:  * Not all control characters can be freely used:
      15:  * ^Q and ^S are used by the Unix operating system
      16:  * for output flow control, and ^Z is used by BSD
      17:  * Unix systems for `job control'.
      18:  *
      19:  * Also note that ^H, ^I and ^M (and somtimes ^J) have their
      20:  * own keys on most keyboards and thus usually have a strong
      21:  * intuitive meaning.
      22:  */
      23:
      24: #define COPY    Ctl(C)
      25: #define DELETE  Ctl(D)
      26: #define GOTO    Ctl(G)
      27: #define UNDO    Ctl(H)
      28: #define ACCEPT  Ctl(I)      /* TAB */
      29: #define NEWLINE Ctl(J)
      30: #define REDRAW  Ctl(L)
      31: #define RETURN  Ctl(M)
      32: #define RECORD  Ctl(R)
      33: #define PLAYBACK    Ctl(P)
      34: #define USEMACRO    PLAYBACK
      35: #define SAVEMACRO   RECORD
      36: #define REDO    Ctl(U)
      37: #define EXIT    Ctl(X)
      38:
      39:
      40: /*
      41:  * Commands bound to ESC sequences.
      42:  *
      43:  * When 'inchar()' in "getc.c" sees an ESC-x sequence, it
      44:  * will return (x&0177)|MASK.
      45:  */
      46:
      47: #define MASK 0200 /* Must fit in a character! */
      48:
      49: #define WIDEN       ('w'|MASK) /* so "\ew" is recognized as WIDEN */
      50: #define NARROW      ('f'|MASK) /* FIRST */
      51: #define RNARROW     ('l'|MASK) /* LAST */
      52: #define EXTEND      ('e'|MASK)
      53:
      54: #define UPLINE      ('u'|MASK)
      55: #define PREVIOUS    ('p'|MASK)
      56: #define NEXT        ('n'|MASK)
      57: #define DOWNLINE    ('d'|MASK)
      58:
      59: #define LEFTARROW   (','|MASK)
      60: #define RITEARROW   ('.'|MASK)
      61: #define UPARROW     ('U'|MASK)
      62: #define DOWNARROW   ('D'|MASK)
      63:
      64: #ifdef HELPFUL
      65: #define HELP    ('?'|MASK)
      66: #endif HELPFUL

#### Defined macros

ACCEPT defined in line 28; used 2 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 135-136(2)

COPY defined in line 24; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 132

Ctl defined in line 9; used 15 times

- in line 24-37(12)
- in /usr/src/new/PORT/B/src/bed/demo.c line 325, 331, 549

DELETE defined in line 25; used 2 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 133-134(2)

DOWNARROW defined in line 62; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 181

DOWNLINE defined in line 57; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 182

EXIT defined in line 37; used 2 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 382
- in /usr/src/new/PORT/B/src/bed/getc.c line 143

EXTEND defined in line 52; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 174

GOTO defined in line 26; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 184

HELP defined in line 65; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 186

LEFTARROW defined in line 59; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 177

MASK defined in line 47; used 15 times

- in line 49-65(13)
- in /usr/src/new/PORT/B/src/bed/getc.c line 736, 759

NARROW defined in line 50; used 2 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 170-171(2)

NEWLINE defined in line 29; never used
NEXT defined in line 56; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 180

PLAYBACK defined in line 33; used 3 times

- in line 34
- in /usr/src/new/PORT/B/src/bed/getc.c line 154-155(2)

PREVIOUS defined in line 55; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 178

RECORD defined in line 32; used 2 times

- in line 35
- in /usr/src/new/PORT/B/src/bed/getc.c line 156

REDO defined in line 36; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 142

REDRAW defined in line 30; used 2 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 139-140(2)

RETURN defined in line 31; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 141

RITEARROW defined in line 60; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 179

RNARROW defined in line 51; used 2 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 172-173(2)

SAVEMACRO defined in line 35; used 1 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 492

UNDO defined in line 27; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 138

UPARROW defined in line 61; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 175

UPLINE defined in line 54; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 176

USEMACRO defined in line 34; used 1 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 492

WIDEN defined in line 49; used 1 times

- in /usr/src/new/PORT/B/src/bed/getc.c line 169

#### Usage of this include

keys.h used 2 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 16
- in /usr/src/new/PORT/B/src/bed/getc.c line 16

Last modified: 1985-08-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 791 |