00001 /* This software is subject to the terms of the Common Public License 00002 You must accept the terms of this license to use this software. 00003 00004 Copyright (C) 2002, International Business Machines Corporation 00005 and others. All Rights Reserved. 00006 00007 Further information about Common Public License Version 0.5 is obtained 00008 from url http://oss.software.ibm.com/developer/opensource/license-cpl.html 00009 */ 00014 #ifndef __TERMINAL_IO__ 00015 #define __TERMINAL_IO__ 00016 00017 struct Concrete_IO; 00028 typedef struct _TerminalIO 00029 { 00030 struct Concrete_IO *concrete_io; 00032 int (*read)(struct _TerminalIO *tio,char *buf, int size); 00038 int (*write)(struct _TerminalIO *tio,char *buf, int size); 00044 int (*tell_window_size)(struct _TerminalIO *tio,int width, int height); 00050 }TerminalIO; 00052 #endif