~arivigo/sline

ref: e70ce36f53845b8a78a1b43a7a28393b43066068 sline/sline.h -rw-r--r-- 439 bytes
e70ce36fAriadna Vigo Ignoring tabs in input 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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, int size, const char *init);
void sline_end(void);
const char *sline_errmsg(void);
int sline_setup(int entry_size);
void sline_set_prompt(const char *fmt, ...);
const char *sline_version(void);

extern int sline_err;