|
|
1.1.1.2 ! root 1: /* $Id: ansi_cio.h,v 1.9 2011/04/21 20:34:20 deuce Exp $ */ 1.1 root 2: 3: /**************************************************************************** 4: * @format.tab-size 4 (Plain Text/Source Code File Header) * 5: * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * 6: * * 7: * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * 8: * * 9: * This library is free software; you can redistribute it and/or * 10: * modify it under the terms of the GNU Lesser General Public License * 11: * as published by the Free Software Foundation; either version 2 * 12: * of the License, or (at your option) any later version. * 13: * See the GNU Lesser General Public License for more details: lgpl.txt or * 14: * http://www.fsf.org/copyleft/lesser.html * 15: * * 16: * Anonymous FTP access to the most recent released source is available at * 17: * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net * 18: * * 19: * Anonymous CVS access to the development source and modification history * 20: * is available at cvs.synchro.net:/cvsroot/sbbs, example: * 21: * cvs -d :pserver:[email protected]:/cvsroot/sbbs login * 22: * (just hit return, no password is necessary) * 23: * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src * 24: * * 25: * For Synchronet coding style and modification guidelines, see * 26: * http://www.synchro.net/source.html * 27: * * 28: * You are encouraged to submit any modifications (preferably in Unix diff * 29: * format) via e-mail to [email protected] * 30: * * 31: * Note: If this box doesn't appear square, then you need to fix your tabs. * 32: ****************************************************************************/ 33: 34: #if (defined CIOLIB_IMPORTS) 35: #undef CIOLIB_IMPORTS 36: #endif 37: #if (defined CIOLIB_EXPORTS) 38: #undef CIOLIB_EXPORTS 39: #endif 40: 41: #include "ciolib.h" 42: 43: #ifdef __cplusplus 44: extern "C" { 45: #endif 1.1.1.2 ! root 46: extern int CIOLIB_ANSI_TIMEOUT; ! 47: extern int (*ciolib_ansi_readbyte_cb)(void); ! 48: extern int (*ciolib_ansi_writebyte_cb)(const unsigned char ch); ! 49: extern int (*ciolib_ansi_initio_cb)(void); ! 50: extern int (*ciolib_ansi_writestr_cb)(const unsigned char *str, size_t len); ! 51: ! 52: int ansi_readbyte_cb(void); ! 53: int ansi_writebyte_cb(const unsigned char ch); ! 54: int ansi_initio_cb(void); ! 55: int ansi_writestr_cb(const unsigned char *str, size_t len); ! 56: 1.1 root 57: int ansi_puttext(int sx, int sy, int ex, int ey, void *fill); 58: int ansi_gettext(int sx, int sy, int ex, int ey, void *fill); 59: void ansi_textattr(int); 60: int ansi_kbhit(void); 61: void ansi_delay(long msec); 62: int ansi_wherey(void); 63: int ansi_wherex(void); 64: int ansi_putch(int ch); 65: void ansi_gotoxy(int x, int y); 66: int ansi_initciolib(long inmode); 67: void ansi_gettextinfo(struct text_info *info); 68: void ansi_setcursortype(int type); 69: int ansi_getch(void); 70: int ansi_getche(void); 71: int ansi_beep(void); 72: void ansi_textmode(int mode); 73: #ifdef __cplusplus 74: } 75: #endif 76:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.