diff options
author | Shav Kinderlehrer <[email protected]> | 2024-07-23 17:48:28 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-07-23 17:48:28 -0400 |
commit | dc0f2ce9ba97ebb47e05b80a511da6eb29818b63 (patch) | |
tree | dc83035069f5a015047be1ca3da6f65781eb4695 /include/status.h | |
parent | f638f4bd1e3a03bc2bdd5f9dcd57d4830fd3c553 (diff) | |
download | molehole-ncurses.tar.gz molehole-ncurses.zip |
Merge old-moleholencurses
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 |