~rcr/rirc

ref: c677d85e88b1397d0eaa9b99ad3acf531f64aa3f rirc/src/draw.h -rw-r--r-- 517 bytes
c677d85e — Richard Robbins add -m/--mode flag 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef RIRC_DRAW_H
#define RIRC_DRAW_H

enum draw_bit
{
	DRAW_INVALID,
	DRAW_FLUSH,  /* immediately draw all set bits */
	DRAW_BELL,   /* set bit to print terminal bell */
	DRAW_BUFFER, /* set bit to draw buffer */
	DRAW_INPUT,  /* set bit to draw input */
	DRAW_NAV,    /* set bit to draw nav */
	DRAW_STATUS, /* set bit to draw status */
	DRAW_ALL,    /* set all draw bits aside from bell */
	DRAW_CLEAR,  /* clear the terminal */
};

void draw_init(void);
void draw_term(void);

void draw(enum draw_bit);

#endif