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 |
Definition in file l4contxt_common.h.
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.
L4_CV int direct_cons_trygetchar | ( | void | ) |
Try to get next character.
Return -1 no character is available.