r44: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 8 May 2000 20:45:10 +0000 (20:45 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 8 May 2000 20:45:10 +0000 (20:45 +0000)
include/cio.h

index 562da97e04714390fb773e62e2957302f6f84598..fd54e7a6eb9981415fefc8a7a43186dfe4ec0fc2 100644 (file)
@@ -2,8 +2,11 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: cio.h,v 1.6 2000/05/08 20:00:47 kevin Exp $
+**  $Id: cio.h,v 1.7 2000/05/08 20:45:10 kevin Exp $
 **  $Log: cio.h,v $
+**  Revision 1.7  2000/05/08 20:45:10  kevin
+**  *** empty log message ***
+**
 **  Revision 1.6  2000/05/08 20:00:47  kevin
 **  ANSI C changes
 **
@@ -38,31 +41,6 @@ extern "C" {
 #endif /* __cplusplus */
 
 
-struct crtv_st {
-    int init;          /* True if initialized */
-    int bios_mode;     /* Current BIOS crt mode */
-    int text_attr;     /* Current text attribute */
-    int act_page;      /* Active page */
-    int tcols, trows;  /* Maximum text coords */
-    int xmax, ymax;    /* Maximum x, y for both text & graphic modes */
-    int cx, cy;                /* Current x, y position */
-}; 
-
-#ifndef DEFINE_CRTV
-   extern struct crtv_st crtv;
-#endif
-
-/*----------------------------------------------------------------------*/
-
-#define CRT_ROWS  25
-#define CRT_COLS  80
-
-/*----------------------------------------------------------------------*/
-
-#define  ATTR_NORMAL     7
-#define  ATTR_REVERSE   14
-#define  ATTR_HIGHLIGHT 15
-
 #define C_BLACK             0                  /* color codes */
 #define C_BLUE       1
 #define C_GREEN             2
@@ -89,61 +67,20 @@ struct crtv_st {
 #define SC_BLANK       ' '
 
 
-#define WAITKEY()      {cio_kb_clr(); while (cio_kb_read() == 0);}
+/* audio.c */
+void cio_beep(void);
+void cio_tone(double freq, double length);
 
-/* center.c */
-void crt_center_line(const char *str);
-/* clreol.c */
-void cio_clreol(void);
-/* clrline.c */
-void cio_clrline(unsigned int line);
-/* clrscrn.c */
-void crt_clrscrn(void);
-/* cpos.c */
-void cio_tab(unsigned int n);
-void cio__save_cpos(void);
-void cio__restore_cpos(void);
-/* fill_eol.c */
-void cio_fill_eol(int c, int attr);
-/* getstate.c */
-void cio_get_state(void);
-/* put_ca.c */
-void cio_set_text_clr(int fclr, int bclr);
-int cio_get_texta(void);
-void cio_set_texta(int a);
-int cio_blank_attr(void);
-void cio_put_ca(int c, int attr);
+/* crtput.c */
 void cio_put_c(int c);
 void cio_put_cc(int c, int count);
-void cio_put_cca(int c, int attr, int count);
 void cio_put_str(const char *str);
-void cio_put_stra(const char *str, int attr);
-void cio_inc_col(int count);
-void cio_dec_col(int count);
-void cio_dec_row(int count);
-/* setcpos.c */
-void cio_set_cpos(int col, int row);
-void cio_get_cpos(int *col, int *row);
-/* beep.c */
-void cio_beep(void);
-/* kb_chk.c */
-int cio_kb_chk(void);
-/* kb_clr.c */
-void cio_kb_clr(void);
-/* kb_getc.c */
+
+/* kbget.c */
 unsigned int cio_kb_getc(void);
 void cio_kb_ungetc(unsigned int c);
-/* kb_gets.c */
 char *cio_kb_gets(char *str, int maxlen);
-/* kb_read.c */
-unsigned int cio_kb_read(void);
-void cio_kb_unread(unsigned int c);
-/* kb_waitc.c */
-unsigned int cio_kb_waitc(const char *astr, const char *estr, int beep_on_error);
-/* tone.c */
-void cio_tone(double freq, double length);
-/* check_kb */
-int cio_check_kb_escape(void);
+unsigned int cio_kb_waitc(const char *astr, int beep);
 
 #ifdef _cplusplus
 }