|
|
1.1 root 1: /*
2: * Copyright (c) 1980 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: * @(#)snake.h 5.1 (Berkeley) 5/30/85
7: */
8:
9: # include <stdio.h>
10: # include <assert.h>
11: # include <sys/types.h>
12: # include <sgtty.h>
13: # include <signal.h>
14: # include <math.h>
15:
16: #define ESC '\033'
17:
18: struct tbuffer {
19: long t[4];
20: } tbuffer;
21:
22: char *CL, *UP, *DO, *ND, *BS,
23: *HO, *CM,
24: *TA, *LL,
25: *KL, *KR, *KU, *KD,
26: *TI, *TE, *KS, *KE;
27: int LINES, COLUMNS; /* physical screen size. */
28: int lcnt, ccnt; /* user's idea of screen size */
29: char xBC, PC;
30: int AM, BW;
31: char tbuf[1024], tcapbuf[128];
32: char *tgetstr(), *tgoto();
33: int Klength; /* length of KX strings */
34: int chunk; /* amount of money given at a time */
35: #ifdef debug
36: #define cashvalue (loot-penalty)/25
37: #else
38: #define cashvalue chunk*(loot-penalty)/25
39: #endif
40:
41: struct point {
42: int col, line;
43: };
44: struct point cursor;
45: struct sgttyb orig, new;
46: #ifdef TIOCLGET
47: struct ltchars olttyc, nlttyc;
48: #endif
49: struct point *point();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.