aboutsummaryrefslogtreecommitdiff
path: root/include/status.h
blob: 45f64659612710095be9fd7d51199cd4640acdf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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