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
COPY defined in line 24; used 1 times
Ctl defined in line 9; used 15 times
DELETE defined in line 25; used 2 times
DOWNARROW defined in line 62; used 1 times
DOWNLINE defined in line 57; used 1 times
EXTEND defined in line 52; used 1 times
GOTO defined in line 26; used 1 times
HELP defined in line 65; used 1 times
LEFTARROW defined in line 59; used 1 times
MASK defined in line 47; used 15 times
NARROW defined in line 50; used 2 times
NEWLINE defined in line 29; never used
NEXT defined in line 56; used 1 times
PLAYBACK defined in line 33; used 3 times
PREVIOUS defined in line 55; used 1 times
RECORD defined in line 32; used 2 times
REDO defined in line 36; used 1 times
REDRAW defined in line 30; used 2 times
RETURN defined in line 31; used 1 times
RITEARROW defined in line 60; used 1 times
RNARROW defined in line 51; used 2 times
SAVEMACRO defined in line 35; used 1 times
UNDO defined in line 27; used 1 times
UPARROW defined in line 61; used 1 times
UPLINE defined in line 54; used 1 times
USEMACRO defined in line 34; used 1 times
WIDEN defined in line 49; used 1 times

Usage of this include

Last modified: 1985-08-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2360
Valid CSS Valid XHTML 1.0 Strict