|
librfn
An ad-hoc utility library
|
#include <librfn/console.h>#include <ctype.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <librfn/util.h>Go to the source code of this file.
Functions | |
| void | console_init (console_t *c, FILE *f) |
| Initialized the console handler. More... | |
| int | console_register (const console_cmd_t *cmd) |
| Register a new command. More... | |
| int | console_getch (console_t *c) |
| Fetch a character from the command processors queue. More... | |
| void | console_putchar (console_t *c, char d) |
| Asynchronously send a character to the command processor. More... | |
| pt_state_t | console_eval (pt_t *pt, console_t *c, const char *cmd) |
| Proto-thread to inject a string into the command parser. More... | |
| pt_state_t | console_run (console_t *c) |
| Console protothread entrypoint. More... | |
| void | console_process (console_t *c, char d) |
| Synchronous console function for use in threaded environments. More... | |
1.8.10