Main Page   File List  

l4contxt_common.h

Go to the documentation of this file.
00001 
00008 /* (c) 2003 'Technische Universitaet Dresden'
00009  * This file is part of the con package, which is distributed under
00010  * the terms of the GNU General Public License 2. Please see the
00011  * COPYING file for details. */
00012 
00013 #ifndef _L4CONTXT_COMMON_L4CONTXT_COMMON_H
00014 #define _L4CONTXT_COMMON_L4CONTXT_COMMON_H
00015 
00016 /* con includes */
00017 #include <l4/l4con/l4con.h>
00018 
00020 typedef struct contxt_ihb
00021 {
00022   char *buffer;         
00023   int  first;           
00024   int  last;            
00025   int  lines;           
00026   int  length;          
00027 } contxt_ihb_t;
00028 
00039 L4_CV int contxt_ihb_init(contxt_ihb_t* ihb, int count, int length);
00040 
00047 L4_CV void contxt_ihb_add(contxt_ihb_t* ihb, const char *s);
00048 
00059 L4_CV void contxt_ihb_read(char* retstr, int maxlen, contxt_ihb_t* ihb);
00060 
00067 #undef getchar /* dietlibc/uClibc define getchar as macro */
00068 L4_CV int getchar(void);
00069 
00071 L4_CV int trygetchar(void);
00072 
00079 L4_CV int contxt_getchar(void);
00080 
00083 L4_CV int contxt_trygetchar(void);
00084 
00086 L4_CV int direct_cons_trygetchar(void);
00087 
00096 #undef putchar /* dietlibc/uClibc define putchar as macro */
00097 L4_CV int putchar(int c);
00098 
00107 L4_CV int contxt_putchar(int c);
00108 
00116 L4_CV int puts(const char *s);
00117 
00125 L4_CV int contxt_puts(const char *s);
00126 
00135 L4_CV int contxt_set_graphmode(long gmode);
00136 
00143 L4_CV int contxt_get_graphmode(void);
00144 
00149 L4_CV void contxt_clrscr(void);
00150 
00151 #endif

DROPS Console User Manual, part of DROPS  © 2000-2003