Functions | |
L4_CV int | contxt_init (long max_sbuf_size, int scrbuf_lines) |
Init of contxt library. | |
L4_CV int | contxt_close (void) |
Close contxt library. | |
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 | contxt_getchar (void) |
Read a 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 |
L4_CV int contxt_init | ( | long | max_sbuf_size, | |
int | scrbuf_lines | |||
) |
Init of contxt library.
max_sbuf_size | ... max IPC string buffer | |
scrbuf_lines | ... number of additional screenbuffer lines |
L4_CV int contxt_close | ( | void | ) |
Close contxt library.
L4_CV int contxt_ihb_init | ( | contxt_ihb_t * | ihb, | |
int | count, | |||
int | length | |||
) |
Initialize input history buffer.
ihb | ... input history buffer structure | |
count | ... number of lines | |
length | ... number of characters per line |
L4_CV void contxt_ihb_add | ( | contxt_ihb_t * | ihb, | |
const char * | s | |||
) |
Add string to history buffer.
ihb | ... input history buffer structure | |
s | ... string to add |
L4_CV void contxt_ihb_read | ( | char * | retstr, | |
int | maxlen, | |||
contxt_ihb_t * | ihb | |||
) |
Reads a maximum amount of count of characters from keyboard.
maxlen | ... size of return string buffer |
retstr | ... return string buffer | |
ihb | ... used input history buffer if 0, no input history buffer will be used |
L4_CV int getchar | ( | void | ) |
Read a character from keyboarde.
L4_CV int contxt_getchar | ( | void | ) |
Read a character.
L4_CV int putchar | ( | int | c | ) |
Write a character.
c | ... character |
L4_CV int contxt_putchar | ( | int | c | ) |
Write a character.
c | ... character |
L4_CV int puts | ( | const char * | s | ) |
Write a string +
.
s | ... string |
L4_CV int contxt_puts | ( | const char * | s | ) |
Write a string +
.
s | ... string |
L4_CV int contxt_set_graphmode | ( | long | gmode | ) |
set graphic mode
gmode | ... coded graphic mode |
L4_CV int contxt_get_graphmode | ( | void | ) |
get graphic mode