1 /*****************************************************************************
2 ** This is part of the CTSim program
3 ** Copyright (C) 1983-2000 Kevin Rosenberg
5 ** $Id: cio.h,v 1.9 2000/06/13 16:20:31 kevin Exp $
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.
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.
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 ******************************************************************************/
24 #define C_BLACK 0 /* color codes */
37 #define C_LTMAGENTA 13
41 /*----------------------------------------------------------------------*/
43 /* screen character codes */
52 void cio_tone(double freq, double length);
55 void cio_put_c(int c);
56 void cio_put_cc(int c, int count);
57 void cio_put_str(const char *str);
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);