Main Page   File List  

l4contxt_common.h File Reference

libcontxt common client interface (intern) More...

Go to the source code of this file.

Data Structures

struct  contxt_ihb
 input history buffer More...

Typedefs

typedef struct contxt_ihb contxt_ihb_t
 input history buffer

Functions

L4_CV int contxt_ihb_init (contxt_ihb_t *ihb, int count, int length)
 Initialize input history buffer.
L4_CV void contxt_ihb_add (contxt_ihb_t *ihb, const char *s)
 Add string to history buffer.
L4_CV void contxt_ihb_read (char *retstr, int maxlen, contxt_ihb_t *ihb)
 Reads a maximum amount of count of characters from keyboard.
L4_CV int getchar (void)
 Read a character from keyboarde.
L4_CV int trygetchar (void)
 Try to get next character.
L4_CV int contxt_getchar (void)
 Read a character.
L4_CV int contxt_trygetchar (void)
 Try to get next character.
L4_CV int direct_cons_trygetchar (void)
 Try to get next character.
L4_CV int putchar (int c)
 Write a character.
L4_CV int contxt_putchar (int c)
 Write a character.
L4_CV int puts (const char *s)
 Write a string +
.
L4_CV int contxt_puts (const char *s)
 Write a string +
.
L4_CV int contxt_set_graphmode (long gmode)
 set graphic mode
L4_CV int contxt_get_graphmode (void)
 get graphic mode
L4_CV void contxt_clrscr (void)
 clear screen

This function fills the screen with the current background color


Detailed Description

libcontxt common client interface (intern)

Date:
2002
Author:
Mathias Noack <mn3@os.inf.tu-dresden.de>

Definition in file l4contxt_common.h.


Function Documentation

L4_CV int trygetchar ( void   ) 

Try to get next character.

Return -1 if no character is available

L4_CV int contxt_trygetchar ( void   ) 

Try to get next character.

Returns:
-1 if no character is available.

L4_CV int direct_cons_trygetchar ( void   ) 

Try to get next character.

Return -1 no character is available.


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