/*
 *  VIDEO.H Copyright (C) 1990 by Mark R. Nelson
 *
 * This header file contains the structures, constants, and function
 * prototypes necessary to use the display routines in VIDEO.C
 */
typedef unsigned char COORD;

typedef struct {
                 COORD first_row;
                 COORD height;
                 COORD first_col;
                 COORD width;
                 COORD cursor_row;
                 COORD cursor_col;
                } WINDOW;

WINDOW *window_open( COORD row, COORD col, COORD width, COORD height );
void window_printf( WINDOW *window ,char *format,... );
void window_putc( WINDOW *window, char c );
void window_select( WINDOW *window );

void scroll( WINDOW *window );
void restore_screen( void );
void initialize_screen( void );
void set_cursor(COORD row, COORD col );
void get_cursor( COORD *row, COORD *col );
void draw_box( WINDOW *window );

