~arivigo/sline

sline/sline.h -rw-r--r-- 479 bytes
312912bfAriadna Vigo sline 1.1.2 a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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);
const char *sline_history_get(int pos);
int sline_setup(int entry_size);
void sline_set_prompt(const char *fmt, ...);
const char *sline_version(void);

extern int sline_err;