# 2.11BSD#431 - /usr/src/games/warp/term.h

##### Variables

    BC                X
    BCsize            X
    CD                X
    CE                X
    CL                X
    CM                X
    CMsize            X
    COLS              X
    CR                X
    DO                X
    DOsize            X
    ERASECH           X
    HO                X
    INTRCH            X
    KILLCH            X
    LINES             X
    ND                X
    NDsize            X
    PC                X
    SE                X
    SG                X
    SO                X
    UC                X
    UE                X
    UG                X
    UP                X
    UPsize            X
    US                X
    VB                X
    _oldtty           X
    _res_flg          X
    _tty              X
    _tty_ch           X
    bsptr             X
    charsperhalfsec   X
    circlebuf         X
    cmbuffer          X
    devtty            X
    filler            X
    gfillen           X
    iocount           X
    just_a_sec        X
    maxcmstring       X
    myDO              X
    myND              X
    myUP              X
    nextin            X
    nextout           X
    ospeed            X
    pending_ch        X
    real_x            X
    real_y            X
    term              X
    tmplen            X
    tmpstr            X

##### Macros

    BREAKCH           X
    addc              X
    addspace          X
    backspace         X
    beg_qwrite        X
    carriage_return   X
    clear             X
    clear_rest        X
    crmode            X
    dingaling         X
    echo              X
    end_qwrite        X
    erase_eol         X
    forceme           X
    input_pending     X
    mvaddc            X
    mvaddch           X
    mvaddstr          X
    nl                X
    nocrmode          X
    noecho            X
    nonl              X
    noraw             X
    output_pending    X
    qaddc             X
    qaddch            X
    qaddspace         X
    qwrite            X
    raw               X
    read_tty          X
    resetty           X
    savetty           X
    setimage          X
    standout          X
    un_standout       X
    un_underline      X
    underchar         X
    underline         X
    unflush_output    X
    up_line           X

       1: /* $Header: term.h,v 7.0.1.2 86/12/12 17:05:15 lwall Exp $ */
       2:
       3: /* $Log:	term.h,v $
       4:  * Revision 7.0.1.2  86/12/12  17:05:15  lwall
       5:  * Baseline for net release.
       6:  *
       7:  * Revision 7.0.1.1  86/10/16  10:53:33  lwall
       8:  * Added Damage.  Fixed random bugs.
       9:  *
      10:  * Revision 7.0  86/10/08  15:14:07  lwall
      11:  * Split into separate files.  Added amoebas and pirates.
      12:  *
      13:  */
      14:
      15: /* warp will still work without the following, but may get ahead at low speed */
      16: #ifdef TIOCOUTQ     /* chars left in output queue */
      17: #define output_pending() (ioctl(1, TIOCOUTQ, &iocount),iocount)
      18: #endif
      19:
      20: /* If some of the following look something like curses calls, it is because
      21:  * warp used to use curses but doesn't now.  Warp was neither as efficient nor
      22:  * as portable with curses, and since the program had to cheat on curses all
      23:  * over the place anyway, we ripped it out.
      24:  */
      25: #define setimage(of,to) (mvaddch(of->posy+1,of->posx*2,of->image=(to)))
      26:
      27: #define mvaddch(y,x,ch) move((y),(x),(ch))
      28: /* #define addch(ch) (tmpchr=(ch), write(1,&tmpchr,1), real_x++) */
      29: #define mvaddc(y,x,ch) move((y),(x),(ch))
      30: #define addc(ch) (write(1,&(ch),1), real_x++)
      31: #define addspace() (write(1," ",1), real_x++)
      32: #define mvaddstr(y,x,s) (move((y),(x),0), tmpstr = (s), \
      33:      tmplen = strlen(tmpstr), write(1, tmpstr, tmplen), real_x += tmplen)
      34:
      35: EXT int tmplen;
      36: EXT char *tmpstr;
      37: /* EXT char tmpchr; */
      38:
      39: /* The following macros are like the pseudo-curses macros above, but do
      40:  * certain amount of controlled output buffering.
      41:  *
      42:  * NOTE: a beg_qwrite()..end_qwrite() sequence must NOT contain a cursor
      43:  * movement (move), because the move() routine uses beg_qwrite()..end_qwrite()
      44:  * itself.
      45:  */
      46:
      47: #define beg_qwrite() (maxcmstring = cmbuffer)
      48: #ifdef vax
      49: #define qwrite() asm("movc3 _gfillen,_filler,*_maxcmstring"); maxcmstring += gfillen
      50: #else
      51: #define qwrite() (movc3(gfillen,filler,maxcmstring), maxcmstring += gfillen)
      52: #endif
      53: #define qaddc(ch) (*maxcmstring++ = (ch), real_x++)
      54: #define qaddch(ch) (*maxcmstring++ = (ch), real_x++)
      55: #define qaddspace() (*maxcmstring++ = ' ', real_x++)
      56: #define end_qwrite() (write(1,cmbuffer,maxcmstring-cmbuffer))
      57:
      58: /* setting a ??size to infinity forces cursor addressing in that direction */
      59:
      60: EXT int CMsize;
      61: EXT int BCsize INIT(1);
      62: EXT int DOsize INIT(1000);
      63: EXT int UPsize INIT(1000);
      64: EXT int NDsize INIT(1000);
      65:
      66: EXT int charsperhalfsec;
      67:
      68: EXT int real_y INIT(-100);
      69: EXT int real_x INIT(-100);
      70:
      71: #ifdef DOINIT
      72: char filler[] = {0,'\b',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
      73: #else
      74: EXT char filler[];
      75: #endif
      76:
      77: EXT char *bsptr INIT(filler+1);
      78:
      79: EXT char term[12];
      80:
      81: EXT char gfillen INIT(25);
      82:
      83: EXT char *maxcmstring;
      84: EXT char cmbuffer[512];
      85:
      86: #define BREAKCH '\0'
      87:
      88: EXT char INTRCH INIT('\03');
      89:
      90: #ifdef PUSHBACK
      91:     EXT char circlebuf[PUSHSIZE];
      92:     EXT int nextin INIT(0);
      93:     EXT int nextout INIT(0);
      94: #   ifdef PENDING
      95: #	ifdef FIONREAD
      96:         EXT long iocount INIT(0);
      97: #	    ifndef lint
      98: #		define input_pending() (nextin!=nextout || \
      99: (ioctl(0, FIONREAD, &iocount),(int)iocount))
     100: #	    else
     101: #		define input_pending() bizarre
     102: #	    endif /* lint */
     103: #	else /* FIONREAD */
     104:         int circfill();
     105: #	    ifdef RDCHK
     106: #		ifndef lint
     107: #		    define input_pending() rdchk(0)
     108: #		else /* lint */
     109: #		    define input_pending() bizarre
     110: #		endif /* lint */
     111: #	    else /* RDCHK */
     112: #		ifndef O_NDELAY  /* assert O_NDELAY */
     113:             ??? PENDING isn't defined correctly in warp.h
     114: #		endif
     115:         EXT int devtty INIT(0);
     116: #		ifndef lint
     117: #		    define input_pending() (nextin!=nextout || circfill())
     118: #		else
     119: #		    define input_pending() bizarre
     120: #		endif /* lint */
     121: #	    endif /* RDCHK */
     122: #	endif /* FIONREAD */
     123: #   else /* PENDING */
     124:     ??? warp won't work without PENDING
     125: #	ifndef lint
     126: #	    define input_pending() (nextin!=nextout)
     127: #	else
     128: #	    define input_pending() bizarre
     129: #	endif /* lint */
     130: #   endif /* PENDING */
     131: #else /* PUSHBACK */
     132: #   ifdef PENDING
     133: #	ifdef FIONREAD /* must have FIONREAD or O_NDELAY for input_pending() */
     134: #	    define read_tty(addr,size) read(0,addr,size)
     135: #	    ifndef lint
     136: #		define input_pending() (ioctl(0, FIONREAD, &iocount), \
     137: (int)iocount)
     138: #	    else
     139: #		define input_pending() bizarre
     140: #	    endif /* lint */
     141:         EXT long iocount INIT(0);
     142: #	else /* FIONREAD */
     143: #	    ifdef RDCHK       /* actually, they can have rdchk() too */
     144: #	    define read_tty(addr,size) read(0,addr,size)
     145: #		ifndef lint
     146: #		    define input_pending() rdchk(0)
     147: #		else /* lint */
     148: #		    define input_pending() bizarre
     149: #		endif /* lint */
     150: #	    else /* RDCHK */
     151: #		ifndef O_NDELAY  /* assert O_NDELAY */
     152:             ??? PENDING isn't defined correctly in warp.h
     153: #		endif
     154:         EXT int devtty INIT(0);
     155:         EXT bool is_input INIT(FALSE);
     156:         EXT char pending_ch INIT(0);
     157: #		ifndef lint
     158: #		    define input_pending() (is_input || \
     159: (is_input=read(devtty,&pending_ch,1)))
     160: #		else
     161: #		    define input_pending() bizarre
     162: #		endif /* lint */
     163: #	    endif /* RDCHK */
     164: #	endif /* FIONREAD */
     165: #   else /* PENDING */
     166:     ??? warp won't work without PENDING
     167: #	define read_tty(addr,size) read(0,addr,size)
     168: #	define input_pending() (FALSE)
     169: #   endif /* PENDING */
     170: #endif /* PUSHBACK */
     171:
     172: /* stuff wanted by terminal mode diddling routines */
     173:
     174: #ifdef TERMIO
     175: EXT struct termio _tty, _oldtty;
     176: #else
     177: EXT struct sgttyb _tty;
     178: EXT int _res_flg INIT(0);
     179: #endif
     180:
     181: EXT int _tty_ch INIT(2);
     182: EXT bool bizarre INIT(FALSE);           /* do we need to restore terminal? */
     183:
     184: /* terminal mode diddling routines */
     185:
     186: #ifdef TERMIO
     187:
     188: #define raw() ((bizarre=1),_tty.c_lflag &=~ISIG,_tty.c_cc[VMIN] = 1,ioctl(_tty_ch,TCSETAF,&_tty))
     189: #define noraw() ((bizarre=1),_tty.c_lflag |= ISIG,_tty.c_cc[VEOF] = CEOF,ioctl(_tty_ch,TCSETAF,&_tty))
     190: #define crmode() ((bizarre=1),_tty.c_lflag &=~ICANON,_tty.c_cc[VMIN] = 1,ioctl(_tty_ch,TCSETAF,&_tty))
     191: #define nocrmode() ((bizarre=1),_tty.c_lflag |= ICANON,_tty.c_cc[VEOF] = CEOF,ioctl(_tty_ch,TCSETAF,&_tty))
     192: #define echo()   ((bizarre=1),_tty.c_lflag |= ECHO, ioctl(_tty_ch, TCSETAW, &_tty))
     193: #define noecho() ((bizarre=1),_tty.c_lflag &=~ECHO, ioctl(_tty_ch, TCSETAW, &_tty))
     194: #define nl()     ((bizarre=1),_tty.c_iflag |= ICRNL,_tty.c_oflag |= ONLCR,ioctl(_tty_ch, TCSETAW, &_tty))
     195: #define nonl()   ((bizarre=1),_tty.c_iflag &=~ICRNL,_tty.c_oflag &=~ONLCR,ioctl(_tty_ch, TCSETAW, &_tty))
     196: #define savetty() (ioctl(_tty_ch, TCGETA, &_oldtty),ioctl(_tty_ch, TCGETA, &_tty))
     197: #define resetty() ((bizarre=0),ioctl(_tty_ch, TCSETAF, &_oldtty))
     198: #define unflush_output()
     199:
     200: #else
     201:
     202: #define raw()    ((bizarre=1),_tty.sg_flags|=RAW, stty(_tty_ch,&_tty))
     203: #define noraw()  ((bizarre=1),_tty.sg_flags&=~RAW,stty(_tty_ch,&_tty))
     204: #define crmode() ((bizarre=1),_tty.sg_flags |= CBREAK, stty(_tty_ch,&_tty))
     205: #define nocrmode() ((bizarre=1),_tty.sg_flags &= ~CBREAK,stty(_tty_ch,&_tty))
     206: #define echo()   ((bizarre=1),_tty.sg_flags |= ECHO, stty(_tty_ch, &_tty))
     207: #define noecho() ((bizarre=1),_tty.sg_flags &= ~ECHO, stty(_tty_ch, &_tty))
     208: #define nl()     ((bizarre=1),_tty.sg_flags |= CRMOD,stty(_tty_ch, &_tty))
     209: #define nonl()   ((bizarre=1),_tty.sg_flags &= ~CRMOD, stty(_tty_ch, &_tty))
     210: #define savetty() (gtty(_tty_ch, &_tty), _res_flg = _tty.sg_flags)
     211: #define resetty() ((bizarre=0),_tty.sg_flags = _res_flg, stty(_tty_ch, &_tty))
     212: #endif /* TERMIO */
     213:
     214: #ifdef TIOCSTI
     215: #ifdef lint
     216: #define forceme(c) ioctl(_tty_ch,TIOCSTI,Null(long*))   /* ghad! */
     217: #else
     218: #define forceme(c) ioctl(_tty_ch,TIOCSTI,c) /* pass character in " " */
     219: #endif /* lint */
     220: #else
     221: #define forceme(c)
     222: #endif
     223:
     224: /* termcap stuff */
     225:
     226: /*
     227:  * NOTE: if you don't have termlib you'll have to define these strings,
     228:  *    the tputs routine, and the tgoto routine.
     229:  * The tgoto routine simply produces a cursor addressing string for a given
     230:  * x and y.  The 1st argument is a generic string to be interpreted.
     231:  * If you are hardwiring it you might just ignore the 1st argument.
     232:  * The tputs routine interprets any leading number as a padding factor, possibly
     233:  * scaled by the number of lines (2nd argument), puts out the string (1st arg)
     234:  * and the padding using the routine specified as the 3rd argument.
     235:  */
     236:
     237: #ifdef HAVETERMLIB
     238: EXT char *BC INIT(Nullch);      /* backspace character */
     239: EXT char *UP INIT(Nullch);      /* move cursor up one line */
     240: EXT char *myUP;
     241: EXT char *ND INIT(Nullch);      /* non-destructive cursor right */
     242: EXT char *myND;
     243: EXT char *DO INIT(Nullch);      /* move cursor down one line */
     244: EXT char *myDO;
     245: EXT char *CR INIT(Nullch);      /* get to left margin, somehow */
     246: EXT char *VB INIT(Nullch);      /* visible bell */
     247: EXT char *CL INIT(Nullch);      /* home and clear screen */
     248: EXT char *CE INIT(Nullch);      /* clear to end of line */
     249: EXT char *CM INIT(Nullch);      /* cursor motion -- PWP */
     250: EXT char *HO INIT(Nullch);      /* home cursor -- PWP */
     251: EXT char *CD INIT(Nullch);      /* clear to end of display -- PWP */
     252: EXT char *SO INIT(Nullch);      /* begin standout mode */
     253: EXT char *SE INIT(Nullch);      /* end standout mode */
     254: EXT int SG INIT(0);     /* blanks left by SO and SE */
     255: EXT char *US INIT(Nullch);      /* start underline mode */
     256: EXT char *UE INIT(Nullch);      /* end underline mode */
     257: EXT char *UC INIT(Nullch);      /* underline a character, if that's how it's done */
     258: EXT int UG INIT(0);     /* blanks left by US and UE */
     259: EXT bool AM INIT(FALSE);        /* does terminal have automatic margins? */
     260: EXT bool XN INIT(FALSE);        /* does it eat 1st newline after automatic wrap? */
     261: EXT char PC INIT(0);        /* pad character for use by tputs() */
     262: EXT short ospeed INIT(0);   /* terminal output speed, for use by tputs() */
     263: EXT int LINES INIT(0), COLS INIT(0);    /* size of screen */
     264: EXT int just_a_sec INIT(960);           /* 1 sec at current baud rate */
     265:                     /* (number of nulls) */
     266: EXT char ERASECH;       /* rubout character */
     267: EXT char KILLCH;        /* line delete character */
     268:
     269: /* define a few handy macros */
     270:
     271: #define clear() (do_tc(CL,LINES),real_y=real_x=0)
     272: #define erase_eol() do_tc(CE,1)
     273: #define backspace() (do_tc(BC,0),real_x--)
     274: #define clear_rest() do_tc(CD,LINES)
     275: #define underline() do_tc(US,1)
     276: #define un_underline() do_tc(UE,1)
     277: #define underchar() do_tc(UC,0)
     278: #define standout() do_tc(SO,1)
     279: #define un_standout() do_tc(SE,1)
     280: #define up_line() do_tc(UP,1)
     281: #define carriage_return() do_tc(CR,1)
     282: #define dingaling() do_tc(VB,1)
     283: #else
     284:   ????????      /* up to you */
     285: #endif
     286:
     287: void    term_init();
     288: void    term_set();
     289: #ifdef PUSHBACK
     290: void    pushchar();
     291: void    mac_init();
     292: void    mac_line();
     293: #endif
     294: void    eat_typeahead();
     295: void    settle_down();
     296: #ifndef read_tty
     297:     int     read_tty();
     298: #endif
     299: void    getcmd();
     300:
     301: int read_nd();
     302: void page();
     303: void move();
     304: void do_tc();
     305: int comp_tc();
     306: void helper();
     307: void rewrite();
     308: char cmstore();

#### Defined variables

BC defined in line 238; used 8 times

- in line 273
- in /usr/src/games/warp/term.c line 155-159(4), 211-212(2), 453

BCsize defined in line 61; used 5 times

- in /usr/src/games/warp/term.c line 211, 284, 290, 440, 453

CD defined in line 251; used 2 times

- in line 274
- in /usr/src/games/warp/term.c line 169

CE defined in line 248; used 2 times

- in line 272
- in /usr/src/games/warp/term.c line 166

CL defined in line 247; used 2 times

- in line 271
- in /usr/src/games/warp/term.c line 165

CM defined in line 249; used 4 times

- in /usr/src/games/warp/term.c line 167, 266, 290, 461

CMsize defined in line 60; used 2 times

- in /usr/src/games/warp/term.c line 266, 442

COLS defined in line 263; used 4 times

- in /usr/src/games/warp/term.c line 188, 208-209(2), 292

CR defined in line 245; used 6 times

- in line 281
- in /usr/src/games/warp/term.c line 194-201(5)

DO defined in line 243; used 6 times

- in /usr/src/games/warp/term.c line 162-164(3), 246-251(3)

DOsize defined in line 62; used 7 times

- in /usr/src/games/warp/term.c line 248-258(5), 439, 449

ERASECH defined in line 266; used 2 times

- in /usr/src/games/warp/term.c line 74-78(2)

HO defined in line 250; used 1 times

- in /usr/src/games/warp/term.c line 168

INTRCH defined in line 88; used 13 times

- in /usr/src/games/warp/score.c line 93, 114, 188, 217, 226, 235, 630, 661-662(2)
- in /usr/src/games/warp/term.c line 411
- in /usr/src/games/warp/us.c line 180
- in /usr/src/games/warp/warp.c line 375, 386

KILLCH defined in line 267; used 2 times

- in /usr/src/games/warp/term.c line 75-79(2)

LINES defined in line 263; used 6 times

- in line 271-274(2)
- in /usr/src/games/warp/term.c line 187, 206-207(2), 292

ND defined in line 241; used 3 times

- in /usr/src/games/warp/term.c line 161, 214-217(2)

NDsize defined in line 64; used 7 times

- in /usr/src/games/warp/term.c line 215-224(5), 440, 457

PC defined in line 261; used 3 times

- in /usr/src/games/warp/term.c line 153, 267-271(2)

SE defined in line 253; used 3 times

- in line 279
- in /usr/src/games/warp/term.c line 171, 184

SG defined in line 254; used 3 times

- in /usr/src/games/warp/term.c line 172-173(2), 185

SO defined in line 252; used 3 times

- in line 278
- in /usr/src/games/warp/term.c line 170, 183

UC defined in line 257; used 4 times

- in line 277
- in /usr/src/games/warp/term.c line 179-182(3)

UE defined in line 256; used 3 times

- in line 276
- in /usr/src/games/warp/term.c line 175, 184

UG defined in line 258; used 3 times

- in /usr/src/games/warp/term.c line 176-177(2), 185

UP defined in line 239; used 7 times

- in line 280
- in /usr/src/games/warp/term.c line 160, 196-198(3), 230-233(2)

UPsize defined in line 63; used 7 times

- in /usr/src/games/warp/term.c line 231-240(5), 439, 445

US defined in line 255; used 5 times

- in line 275
- in /usr/src/games/warp/term.c line 174-183(4)

VB defined in line 246; used 4 times

- in line 282
- in /usr/src/games/warp/term.c line 191-193(3)

_oldtty defined in line 175; used 2 times

- in line 196-197(2)

_res_flg defined in line 178; used 2 times

- in line 210-211(2)

_tty defined in line 177; used 50 times

- in line 188-196(23), 202-211(20)
- in /usr/src/games/warp/term.c line 73-79(6), 585

_tty_ch defined in line 181; used 24 times

- in line 188-218(23)
- in /usr/src/games/warp/term.c line 585

bsptr defined in line 77; used 2 times

- in /usr/src/games/warp/term.c line 211-212(2)

charsperhalfsec defined in line 66; used 3 times

- in /usr/src/games/warp/play.c line 44, 54
- in /usr/src/games/warp/term.c line 273

circlebuf defined in line 91; used 6 times

- in /usr/src/games/warp/term.c line 614, 644-648(3), 654, 675

cmbuffer defined in line 84; used 13 times

- in line 47, 56(2)
- in /usr/src/games/warp/term.c line 217-219(2), 233-235(2), 251-253(2), 264-266(3), 468

devtty defined in line 154; used 5 times

- in line 159
- in /usr/src/games/warp/term.c line 129-134(3), 644

filler defined in line 74; used 27 times

- in line 51, 77
- in /usr/src/games/warp/bang.c line 43, 84-92(5)
- in /usr/src/games/warp/term.c line 270(2), 280
- in /usr/src/games/warp/weapon.c line 483-496(7), 550-551(2), 560, 566-574(5), 633

gfillen defined in line 81; used 4 times

- in line 49-51(3)
- in /usr/src/games/warp/term.c line 280

iocount defined in line 141; used 6 times

- in line 17(2), 99(2), 136-137(2)

just_a_sec defined in line 264; used 16 times

- in /usr/src/games/warp/term.c line 87-107(16)

maxcmstring defined in line 83; used 12 times

- in line 47-56(8)
- in /usr/src/games/warp/term.c line 468, 488-490(2), 567

myDO defined in line 244; used 5 times

- in /usr/src/games/warp/term.c line 247-253(3), 259, 449

myND defined in line 242; used 4 times

- in /usr/src/games/warp/term.c line 218-219(2), 225, 457

myUP defined in line 240; used 4 times

- in /usr/src/games/warp/term.c line 234-235(2), 241, 445

nextin defined in line 92; used 16 times

- in line 98, 117, 126
- in /usr/src/games/warp/term.c line 576, 597, 613, 643-656(9), 671

nextout defined in line 93; used 14 times

- in line 98, 117, 126
- in /usr/src/games/warp/term.c line 576, 597, 613-615(3), 643, 668-675(5)

ospeed defined in line 262; used 13 times

- in /usr/src/games/warp/term.c line 73-77(2), 85, 273-285(10)

pending_ch defined in line 156; used 3 times

- in line 159
- in /usr/src/games/warp/term.c line 688, 698

real_x defined in line 69; used 11 times

- in line 30-33(3), 53-55(3), 271-273(2)
- in /usr/src/games/warp/init.c line 173
- in /usr/src/games/warp/term.c line 438, 464

real_y defined in line 68; used 4 times

- in line 271
- in /usr/src/games/warp/init.c line 173
- in /usr/src/games/warp/term.c line 437, 463

term defined in line 79; used 4 times

- in /usr/src/games/warp/score.c line 98-100(2)
- in /usr/src/games/warp/term.c line 288
- in /usr/src/games/warp/warp.c line 350

tmplen defined in line 35; used 3 times

- in line 33(3)

tmpstr defined in line 36; used 3 times

- in line 32-33(3)

#### Defined macros

BREAKCH defined in line 86; used 6 times

- in /usr/src/games/warp/score.c line 630, 661-662(2)
- in /usr/src/games/warp/us.c line 180
- in /usr/src/games/warp/warp.c line 375, 386

addc defined in line 30; never used
addspace defined in line 31; used 1 times

- in /usr/src/games/warp/us.c line 202

backspace defined in line 273; never used
beg_qwrite defined in line 47; used 7 times

- in /usr/src/games/warp/bang.c line 42, 83
- in /usr/src/games/warp/term.c line 441, 477
- in /usr/src/games/warp/weapon.c line 481, 548, 632

carriage_return defined in line 281; never used
clear defined in line 271; used 16 times

- in /usr/src/games/warp/init.c line 79
- in /usr/src/games/warp/score.c line 176, 210, 219, 228, 237, 386, 637, 707
- in /usr/src/games/warp/term.c line 496, 536
- in /usr/src/games/warp/us.c line 248, 257, 271
- in /usr/src/games/warp/warp.c line 320, 403

clear_rest defined in line 274; never used
crmode defined in line 204; used 4 times

- in /usr/src/games/warp/intrp.c line 459, 653
- in /usr/src/games/warp/sig.c line 70
- in /usr/src/games/warp/term.c line 295

dingaling defined in line 282; used 1 times

- in /usr/src/games/warp/term.c line 593

echo defined in line 206; never used
end_qwrite defined in line 56; used 7 times

- in /usr/src/games/warp/bang.c line 56, 105
- in /usr/src/games/warp/term.c line 469, 479
- in /usr/src/games/warp/weapon.c line 512, 577, 640

erase_eol defined in line 272; used 1 times

- in /usr/src/games/warp/score.c line 622

forceme defined in line 221; never used
input_pending defined in line 168; used 3 times

- in /usr/src/games/warp/term.c line 582, 716
- in /usr/src/games/warp/us.c line 249

mvaddc defined in line 29; used 5 times

- in /usr/src/games/warp/move.c line 63-65(2), 196
- in /usr/src/games/warp/term.c line 540-543(2)

mvaddch defined in line 27; used 13 times

- in line 25
- in /usr/src/games/warp/init.c line 513-515(2), 521
- in /usr/src/games/warp/move.c line 358, 533-539(3)
- in /usr/src/games/warp/play.c line 97, 131
- in /usr/src/games/warp/them.c line 103, 401
- in /usr/src/games/warp/us.c line 196

mvaddstr defined in line 32; used 88 times

- in /usr/src/games/warp/init.c line 543
- in /usr/src/games/warp/score.c line 257, 264-268(2), 275, 283-287(2), 294-299(2), 311, 320, 326, 336, 342, 349, 355-368(4), 416-420(3), 426-429(2), 435-442(3), 448-465(6), 472-512(13), 576, 602, 612, 619-623(2), 641-646(4), 652-657(2)
- in /usr/src/games/warp/term.c line 497-520(24), 550
- in /usr/src/games/warp/us.c line 185
- in /usr/src/games/warp/warp.c line 321, 364-368(2), 376-378(2)

nl defined in line 208; never used
nocrmode defined in line 205; never used
noecho defined in line 207; used 4 times

- in /usr/src/games/warp/intrp.c line 461, 655
- in /usr/src/games/warp/sig.c line 72
- in /usr/src/games/warp/term.c line 297

nonl defined in line 209; used 4 times

- in /usr/src/games/warp/intrp.c line 462, 656
- in /usr/src/games/warp/sig.c line 73
- in /usr/src/games/warp/term.c line 298

noraw defined in line 203; never used
output_pending defined in line 17; used 2 times

- in /usr/src/games/warp/play.c line 44, 54

qaddc defined in line 53; used 9 times

- in /usr/src/games/warp/bang.c line 48-53(3), 97-102(3)
- in /usr/src/games/warp/weapon.c line 503-506(2), 576

qaddch defined in line 54; used 6 times

- in /usr/src/games/warp/term.c line 446-458(4), 466
- in /usr/src/games/warp/weapon.c line 637

qaddspace defined in line 55; used 4 times

- in /usr/src/games/warp/bang.c line 55, 104
- in /usr/src/games/warp/weapon.c line 508, 639

qwrite defined in line 51; used 23 times

- in /usr/src/games/warp/bang.c line 44, 85-93(5)
- in /usr/src/games/warp/weapon.c line 484-492(5), 501, 553-554(2), 561-575(7), 634-635(2)

raw defined in line 202; used 4 times

- in /usr/src/games/warp/intrp.c line 460, 654
- in /usr/src/games/warp/sig.c line 71
- in /usr/src/games/warp/term.c line 296

read_tty defined in line 167; used 5 times

- in line 296-297(2)
- in /usr/src/games/warp/term.c line 679, 743-745(2)

resetty defined in line 211; used 11 times

- in /usr/src/games/warp/intrp.c line 457, 650
- in /usr/src/games/warp/move.c line 84
- in /usr/src/games/warp/score.c line 240, 687, 704
- in /usr/src/games/warp/sig.c line 80, 104, 215
- in /usr/src/games/warp/warp.c line 331, 404

savetty defined in line 210; used 2 times

- in /usr/src/games/warp/sig.c line 69
- in /usr/src/games/warp/term.c line 70

setimage defined in line 25; used 12 times

- in /usr/src/games/warp/init.c line 340
- in /usr/src/games/warp/move.c line 563, 603
- in /usr/src/games/warp/them.c line 71, 86, 289
- in /usr/src/games/warp/us.c line 50, 120, 146
- in /usr/src/games/warp/weapon.c line 163, 190, 681

standout defined in line 278; never used
un_standout defined in line 279; never used
un_underline defined in line 276; never used
underchar defined in line 277; never used
underline defined in line 275; never used
unflush_output defined in line 198; never used
up_line defined in line 280; never used

#### Usage of this include

term.h used 13 times

- in /usr/src/games/warp/bang.c line 23
- in /usr/src/games/warp/init.c line 28
- in /usr/src/games/warp/intrp.c line 25
- in /usr/src/games/warp/move.c line 22
- in /usr/src/games/warp/play.c line 18
- in /usr/src/games/warp/score.c line 24
- in /usr/src/games/warp/sig.c line 23
- in /usr/src/games/warp/term.c line 27
- in /usr/src/games/warp/them.c line 30
- in /usr/src/games/warp/us.c line 24
- in /usr/src/games/warp/util.c line 20
- in /usr/src/games/warp/warp.c line 128
- in /usr/src/games/warp/weapon.c line 22

Last modified: 1987-06-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1627 |