home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume13
/
okbridge
/
part07
/
terminal.h
< prev
Wrap
C/C++ Source or Header
|
1992-01-12
|
2KB
|
59 lines
/* terminal
!
! Copyright (C) 1990,1991 by Matthew Clegg
!
! This program may be copied and distributed freely. Please do not
! charge money for this program or for any program derived from it.
! If you modify this program, then include a notice stating plainly
! that your program is derived from the okbridge program and is not
! the same as the official okbridge program.
!
! I welcome any suggestions for improvement to okbridge, and
! I would be especially happy to receive improved source code.
! If you have comments or suggestions, or if you would like to
! join the okbridge mailing list, then write to
!
! mclegg@cs.ucsd.edu
!
*
* The TERMINAL module serves as one of the main interfaces to the
* operating system, the other interface being the NETWORK module.
* This module provides primitives for outputting text to the screen
* and reading characters from the keyboard. We assume that
* the screen has at least 24 lines and 80 columns, that the cursor
* is addressable, and that it is possible to check in advance whether
* or not a character is available from the keyboard.
*/
extern Initialize_Terminal ();
/* To be called once at the beginning of the program. */
extern print ();
/* void print (int row, int col, char *message); */
/* (1,1) specifies the upper left corner of the screen. */
extern int char_avail ();
/* int char_avail (void); */
/* Returns TRUE if a character is available from the keyboard. */
extern int input_char ();
/* int input_char (void); */
/* Returns the next input character from the keyboard. */
extern set_cursor ();
/* void set_cursor (int row, int col); */
/* Places the cursor at the specified (row, col). */
extern clear_screen ();
/* void clear_screen (void); */
/* Clears the screen and places the cursor in the upper left corner. */
extern ring_bell ();
/* void ring_bell (void); */
/* Rings the terminal's bell */
extern Reset_Terminal ();
/* void Reset_Terminal (void); */
/* To be called at the end of the program to reset the terminal to its
initial operating mode. */