|
|
1.1 ! root 1: /* $Id: console.h,v 1.11 2005/11/19 07:52:34 deuce Exp $ */ ! 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: ! 35: #ifndef _CONSOLE_H_ ! 36: #define _CONSOLE_H_ ! 37: ! 38: #include <sys/param.h> ! 39: #include <sys/time.h> ! 40: #include <sys/types.h> ! 41: #include <sys/user.h> ! 42: ! 43: #include <gen_defs.h> ! 44: #include <semwrap.h> ! 45: ! 46: #include "vidmodes.h" ! 47: ! 48: extern sem_t console_mode_changed; ! 49: extern sem_t copybuf_set; ! 50: extern sem_t pastebuf_request; ! 51: extern sem_t pastebuf_set; ! 52: extern sem_t font_set; ! 53: extern int new_font; ! 54: extern int font_force; ! 55: extern int setfont_return; ! 56: extern pthread_mutex_t copybuf_mutex; ! 57: extern char *copybuf; ! 58: extern char *pastebuf; ! 59: ! 60: extern int CurrMode; ! 61: ! 62: extern int InitCS; ! 63: extern int InitCE; ! 64: ! 65: extern WORD *vmem; ! 66: ! 67: extern BYTE CursRow; ! 68: extern BYTE CursCol; ! 69: extern BYTE CursStart; ! 70: extern BYTE CursEnd; ! 71: ! 72: extern WORD DpyCols; ! 73: extern BYTE DpyRows; ! 74: ! 75: extern int FH,FW; ! 76: ! 77: extern int x_nextchar; ! 78: ! 79: extern int console_new_mode; ! 80: ! 81: int init_window(); ! 82: int video_init(); ! 83: int init_mode(int mode); ! 84: int tty_read(int flag); ! 85: int tty_peek(int flag); ! 86: int tty_kbhit(void); ! 87: void tty_beep(void); ! 88: void x_win_title(const char *title); ! 89: int console_init(void); ! 90: int x_load_font(const char *filename); ! 91: ! 92: #define TTYF_BLOCK 0x00000008 ! 93: #define TTYF_POLL 0x00000010 ! 94: #define NO_NEW_MODE -999 ! 95: ! 96: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.