~arivigo/sline

ref: 0.4.0 sline/sline.h -rw-r--r-- 391 bytes
c2a72b29Ariadna Vigo sline 0.4.0 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* See LICENSE for copyright and license details. */

/* sline_err values */
enum {
	SLINE_ERR_DEF,
	SLINE_ERR_EOF,
	SLINE_ERR_IO,
	SLINE_ERR_MEMORY,
	SLINE_ERR_TERMIOS_GET,
	SLINE_ERR_TERMIOS_SET
};

int sline(char *buf, size_t size);
void sline_end(void);
const char *sline_errmsg(void);
int sline_setup(int entry_size);
void sline_set_prompt(const char *fmt, ...);

extern int sline_err;