r94: finished c++ conversions
[ctsim.git] / include / cio.h
1 /*****************************************************************************
2 **  This is part of the CTSim program
3 **  Copyright (C) 1983-2000 Kevin Rosenberg
4 **
5 **  $Id: cio.h,v 1.9 2000/06/13 16:20:31 kevin Exp $
6 **
7 **  This program is free software; you can redistribute it and/or modify
8 **  it under the terms of the GNU General Public License (version 2) as
9 **  published by the Free Software Foundation.
10 **
11 **  This program is distributed in the hope that it will be useful,
12 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 **  GNU General Public License for more details.
15 **
16 **  You should have received a copy of the GNU General Public License
17 **  along with this program; if not, write to the Free Software
18 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 ******************************************************************************/
20 #ifndef __CIO_H
21 #define __CIO_H
22
23
24 #define C_BLACK      0                  /* color codes */
25 #define C_BLUE       1
26 #define C_GREEN      2
27 #define C_CYAN       3
28 #define C_RED        4
29 #define C_MAGENTA    5
30 #define C_BROWN      6
31 #define C_WHITE      7
32 #define C_GREY       8
33 #define C_LTBLUE     9
34 #define C_LTGREEN   10
35 #define C_LTCYAN    11
36 #define C_LTRED     12
37 #define C_LTMAGENTA 13
38 #define C_YELLOW    14
39 #define C_LTWHITE   15
40
41 /*----------------------------------------------------------------------*/
42
43 /* screen character codes */
44
45 #define SC_BKSP           8
46 #define SC_TAB            9
47 #define SC_BLANK        ' '
48
49
50 /* audio.cpp */
51 void cio_beep(void);
52 void cio_tone(double freq, double length);
53
54 /* crtput.cpp */
55 void cio_put_c(int c);
56 void cio_put_cc(int c, int count);
57 void cio_put_str(const char *str);
58
59 /* kbget.cpp */
60 unsigned int cio_kb_getc(void);
61 void cio_kb_ungetc(unsigned int c);
62 char *cio_kb_gets(char *str, int maxlen);
63 unsigned int cio_kb_waitc(const char *astr, int beep);
64
65 #endif