DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T c

⟦2829c9b02⟧ TextFile

    Length: 810 (0x32a)
    Types: TextFile
    Names: »csr.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Tetris/csr.h« 

TextFile

#include <sgtty.h>

#ifdef EXPANSION
#define MAX_X 132
#define MAX_Y 48
#else
#define MAX_X 80
#define MAX_Y 24
#endif

char	window0[MAX_Y][MAX_X];
char	window1[MAX_Y][MAX_X];
char	window2[MAX_Y][MAX_X];

char    *tc_ce;
char    *tc_cm;
char    *tc_cl;
char    *tc_up;
char    *tc_do;
int     putch();
int	_csrx, _csry, _rx, _ry;

#define move(y,x)		(_csry =y, _csrx =x)
#define mvaddch(y,x,ch)		((window1[y][x] = ch))
#define addch(ch)		window1[_csry][_csrx++] = ch
#define erase(y,x,n)		tospaces(&window1[y][x], n)

#define cls() 			(tputs(tc_cl, 0, putch))
#define csr(row,col)		(tputs(tgoto(tc_cm, col, row), 0, putch),\
								_csry = row, _csrx = col)

#define stty(a,b)		ioctl(a, TIOCSETN, b)

struct sgttyb tty, orig_tty;
struct ltchars ltc, orig_ltc;
struct tchars tc, orig_tc;
extern short ospeed;