diff options
Diffstat (limited to 'include/status.h')
-rwxr-xr-x | include/status.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/status.h b/include/status.h new file mode 100755 index 0000000..45f6465 --- /dev/null +++ b/include/status.h @@ -0,0 +1,27 @@ +#ifndef _STATUS_H_ +#define _STATUS_H_ +#include "config.h" + +/** + * Allocate a status window at the bottom of the terminal + * + * Saves the status window into the `*conf` parameter. + */ +void init_status(struct config *conf); + +/** + * Set the message currently displayed in the status window. + */ +void update_status(struct config *conf, char *s); + +/** + * Set the status to prompt for a Molerat URL. The raw string recieved will be. + * placed in `*conf` + */ +void prompt_status_url(struct config *conf); + +/** + * Same as `update_status` but signify error. + */ +void error_status(struct config *conf, char *s); +#endif |